@fluid-topics/ft-search-bar 0.3.48 → 0.3.50
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 +47 -31
- package/build/ft-search-bar.min.js +57 -41
- 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=window,u=d.trustedTypes,b=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,g="?"+v,x=`<${g}>`,y=document,m=(t="")=>y.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,z=/>/g,O=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,C=/"/g,E=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),L=new WeakMap,j=y.createTreeWalker(y,129,null,!1),M=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=k;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===k?"!--"===a[1]?n=S:void 0!==a[1]?n=z:void 0!==a[2]?(E.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=O):void 0!==a[3]&&(n=O):n===O?">"===a[0]?(n=null!=s?s:k,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?O:'"'===a[3]?C:B):n===C||n===B?n=O:n===S||n===z?n=k:(n=O,s=void 0);const p=n===O&&t[e+1].startsWith("/>")?" ":"";r+=n===k?i+x:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+v+p):i+v+(-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!==b?b.createHTML(l):l,o]};class P{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]=M(t,e);if(this.el=P.createElement(a,i),j.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=j.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(v)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(v),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===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=window,u=d.trustedTypes,b=u?u.createPolicy("lit-html",{createHTML:t=>t}):void 0,v=`lit$${(Math.random()+"").slice(9)}$`,g="?"+v,x=`<${g}>`,y=document,m=(t="")=>y.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,S=/-->/g,z=/>/g,O=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),B=/'/g,C=/"/g,E=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),D=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),L=new WeakMap,j=y.createTreeWalker(y,129,null,!1),M=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=k;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===k?"!--"===a[1]?n=S:void 0!==a[1]?n=z:void 0!==a[2]?(E.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=O):void 0!==a[3]&&(n=O):n===O?">"===a[0]?(n=null!=s?s:k,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?O:'"'===a[3]?C:B):n===C||n===B?n=O:n===S||n===z?n=k:(n=O,s=void 0);const p=n===O&&t[e+1].startsWith("/>")?" ":"";r+=n===k?i+x:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+v+p):i+v+(-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!==b?b.createHTML(l):l,o]};class P{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]=M(t,e);if(this.el=P.createElement(a,i),j.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=j.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(v)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(v),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?Z:"?"===e[1]?_:"@"===e[1]?H:R})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(E.test(o.tagName)){const t=o.textContent.split(v),e=t.length-1;if(e>0){o.textContent=u?u.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],m()),j.nextNode(),l.push({type:2,index:++s});o.append(t[e],m())}}}else if(8===o.nodeType)if(o.data===g)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(v,t+1));)l.push({type:7,index:s}),t+=v.length-1}s++}}static createElement(t,e){const i=y.createElement("template");return i.innerHTML=t,i}}function A(t,e,i=t,o){var s,r,n,l;if(e===D)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=$(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)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=A(t,a._$AS(t,e.values),a,o)),e}class N{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:y).importNode(i,!0);j.currentNode=s;let r=j.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 V(r,this,t)),this.u.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=j.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class T{constructor(t,e,i,o){var s;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=A(this,t,e),$(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==D&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>w(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==F&&$(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.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=P.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new N(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=L.get(t.strings);return void 0===e&&L.set(t.strings,e=new P(t)),e}k(t){w(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.O(m()),this.O(m()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class R{constructor(t,e,i,o,s){this.type=1,this._$AH=F,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=F}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=A(this,t,e,0),r=!$(t)||t!==this._$AH&&t!==D,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=A(this,o[i+n],e,n),l===D&&(l=this._$AH[n]),r||(r=!$(l)||l!==this._$AH[n]),l===F?t=F:t!==F&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}const U=u?u.emptyScript:"";class _ extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==F?this.element.setAttribute(this.name,U):this.element.removeAttribute(this.name)}}class H extends R{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=A(this,t,e,0))&&void 0!==i?i:F)===D)return;const o=this._$AH,s=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==F&&(o===F||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 V{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){A(this,t)}}const K=d.litHtmlPolyfillSupport;null==K||K(P,T),(null!==(c=d.litHtmlVersions)&&void 0!==c?c:d.litHtmlVersions=[]).push("2.4.0");
|
|
25
25
|
/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2020 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
29
|
*/
|
|
30
|
-
const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:q}),X=new Map,Y=(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=W(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=X.get(t))&&(n.raw=n,X.set(t,e=n)),i=l}return t(e,...i)})(I);var J;!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"}(J||(J={}));const Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),tt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),et={fontFamily:tt,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")},it=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",Q),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",et.fontSize,"20px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",et.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",et.letterSpacing,"0.15px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",et.lineHeight,"1.2"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",et.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Q),ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",et.fontSize,"14px"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",et.fontWeight,"normal"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",et.letterSpacing,"0.105px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",et.lineHeight,"1.7"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",et.textTransform,"inherit"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",tt),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",et.fontSize,"16px"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",et.fontWeight,"600"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",et.letterSpacing,"0.144px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",et.lineHeight,"1.5"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",et.textTransform,"inherit"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",tt),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",et.fontSize,"14px"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",et.fontWeight,"normal"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",et.letterSpacing,"0.098px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",et.lineHeight,"1.7"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",et.textTransform,"inherit"),Ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",et.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",et.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",et.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",et.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",et.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",et.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",et.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",et.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",et.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",et.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",et.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",et.textTransform,"inherit")},Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",tt),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",et.fontSize,"10px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",et.fontWeight,"normal"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",et.letterSpacing,"0.33px"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",et.lineHeight,"1.6"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",et.textTransform,"inherit"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",tt),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",et.fontSize,"10px"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",et.fontWeight,"normal"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",et.letterSpacing,"1.5px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",et.lineHeight,"1.6"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",et.textTransform,"uppercase"),
|
|
30
|
+
const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:q}),X=new Map,Y=(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=W(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=X.get(t))&&(n.raw=n,X.set(t,e=n)),i=l}return t(e,...i)})(I);var J;!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"}(J||(J={}));const Q=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),tt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),et={fontFamily:tt,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")},it=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",Q),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",et.fontSize,"20px"),st=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",et.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",et.letterSpacing,"0.15px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",et.lineHeight,"1.2"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",et.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Q),ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",et.fontSize,"14px"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",et.fontWeight,"normal"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",et.letterSpacing,"0.105px"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",et.lineHeight,"1.7"),dt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",et.textTransform,"inherit"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",tt),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",et.fontSize,"16px"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",et.fontWeight,"600"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",et.letterSpacing,"0.144px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",et.lineHeight,"1.5"),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",et.textTransform,"inherit"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",tt),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",et.fontSize,"14px"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",et.fontWeight,"normal"),kt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",et.letterSpacing,"0.098px"),St=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",et.lineHeight,"1.7"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",et.textTransform,"inherit"),Ot={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",et.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",et.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",et.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",et.textTransform,"inherit")},Bt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",et.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",et.letterSpacing,"0.252px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",et.lineHeight,"1.4"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",et.textTransform,"inherit")},Ct={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",et.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",et.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",et.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",et.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",et.textTransform,"inherit")},Et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",tt),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",et.fontSize,"10px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",et.fontWeight,"normal"),Ft=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",et.letterSpacing,"0.33px"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",et.lineHeight,"1.6"),jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",et.textTransform,"inherit"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",tt),Pt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",et.fontSize,"10px"),At=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",et.fontWeight,"normal"),Nt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",et.letterSpacing,"1.5px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",et.lineHeight,"1.6"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",et.textTransform,"uppercase"),Zt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family",tt),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size",et.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",et.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",et.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height",et.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",et.textTransform,"uppercase")},Ut=i.css`
|
|
31
31
|
.ft-typography--title {
|
|
32
32
|
font-family: ${it};
|
|
33
33
|
font-size: ${ot};
|
|
@@ -111,12 +111,12 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
111
111
|
}
|
|
112
112
|
`,Yt=i.css`
|
|
113
113
|
.ft-typography--button {
|
|
114
|
-
font-family: ${
|
|
115
|
-
font-size: ${
|
|
116
|
-
font-weight: ${
|
|
117
|
-
letter-spacing: ${
|
|
118
|
-
line-height: ${
|
|
119
|
-
text-transform: ${
|
|
114
|
+
font-family: ${Zt.fontFamily};
|
|
115
|
+
font-size: ${Zt.fontSize};
|
|
116
|
+
font-weight: ${Zt.fontWeight};
|
|
117
|
+
letter-spacing: ${Zt.letterSpacing};
|
|
118
|
+
line-height: ${Zt.lineHeight};
|
|
119
|
+
text-transform: ${Zt.textTransform};
|
|
120
120
|
}
|
|
121
121
|
`,Jt=i.css`
|
|
122
122
|
.ft-typography {
|
|
@@ -129,7 +129,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
129
129
|
</${G(this.element)}>
|
|
130
130
|
`:Y`
|
|
131
131
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
132
|
-
`}}function ee(t,e){return t.flatMap((t=>[t,...ee(e(t),e)]))}function ie(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function oe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>oe(e,t.selected))),value:t.value}}function se(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>oe(t,!1)))}}te.styles=[
|
|
132
|
+
`}}function ee(t,e){return t.flatMap((t=>[t,...ee(e(t),e)]))}function ie(t){return t.startsWith('"')&&t.endsWith('"')?t.replace(/(^"+)|("+$)/g,""):t}function oe(t,e){return{label:t.label,selected:!e&&t.selected,subOptions:t.childNodes.map((e=>oe(e,t.selected))),value:t.value}}function se(t){return{id:t.key,label:t.label,multivalued:t.multiSelectionable,options:t.rootNodes.map((t=>oe(t,!1)))}}te.styles=[Ut,_t,Ht,Vt,Kt,qt,Wt,Gt,Xt,Yt,Jt],Qt([o.property()],te.prototype,"element",void 0),Qt([o.property()],te.prototype,"variant",void 0),e.customElement("ft-typography")(te);const re=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),ne={color:re,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",re),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},le=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ae=le,ce=e.FtCssVariableFactory.extend("--ft-ripple-background-color",le),he=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),pe=he,fe=e.FtCssVariableFactory.extend("--ft-ripple-background-color",he),de=i.css`
|
|
133
133
|
:host {
|
|
134
134
|
display: contents;
|
|
135
135
|
}
|
|
@@ -361,18 +361,21 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
361
361
|
<div></div>
|
|
362
362
|
<div></div>
|
|
363
363
|
</div>
|
|
364
|
-
`}}var ke,Se;we.styles=$e,e.customElement("ft-loader")(we),function(t){t.
|
|
365
|
-
:host {
|
|
366
|
-
display: inline-
|
|
364
|
+
`}}var ke,Se;we.styles=$e,e.customElement("ft-loader")(we),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(ke||(ke={})),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=""}(Se||(Se={}));const ze=new Map([...["abw"].map((t=>[t,Se.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,Se.AUDIO])),...["avi"].map((t=>[t,Se.AVI])),...["chm","xhs"].map((t=>[t,Se.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,Se.CODE])),...["csv"].map((t=>[t,Se.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Se.DITA])),...["epub"].map((t=>[t,Se.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Se.EXCEL])),...["flac"].map((t=>[t,Se.FLAC])),...["gif"].map((t=>[t,Se.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Se.GZIP])),...["html","htm","xhtml"].map((t=>[t,Se.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,Se.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Se.JPEG])),...["json"].map((t=>[t,Se.JSON])),...["m4a","m4p"].map((t=>[t,Se.M4A])),...["mov","qt"].map((t=>[t,Se.MOV])),...["mp3"].map((t=>[t,Se.MP3])),...["mp4","m4v"].map((t=>[t,Se.MP4])),...["ogg","oga"].map((t=>[t,Se.OGG])),...["pdf","ps"].map((t=>[t,Se.PDF])),...["png"].map((t=>[t,Se.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Se.POWERPOINT])),...["rar"].map((t=>[t,Se.RAR])),...["stp"].map((t=>[t,Se.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Se.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,Se.VIDEO])),...["wav"].map((t=>[t,Se.WAV])),...["wma"].map((t=>[t,Se.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Se.WORD])),...["xml","xsl","rdf"].map((t=>[t,Se.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Se.YAML])),...["zip"].map((t=>[t,Se.ZIP]))]),Oe=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Be={size:e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ce=i.css`
|
|
365
|
+
:host, i.ft-icon {
|
|
366
|
+
display: inline-flex;
|
|
367
|
+
align-items: center;
|
|
368
|
+
justify-content: center;
|
|
367
369
|
}
|
|
368
370
|
|
|
369
|
-
:host
|
|
371
|
+
:host {
|
|
370
372
|
width: ${Be.size};
|
|
371
373
|
height: ${Be.size};
|
|
372
|
-
text-align: center;
|
|
373
374
|
}
|
|
374
375
|
|
|
375
376
|
i.ft-icon {
|
|
377
|
+
width: 100%;
|
|
378
|
+
height: 100%;
|
|
376
379
|
font-size: ${Be.size};
|
|
377
380
|
line-height: 1;
|
|
378
381
|
font-weight: normal;
|
|
@@ -387,8 +390,13 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
387
390
|
vertical-align: ${Be.verticalAlign};
|
|
388
391
|
}
|
|
389
392
|
|
|
390
|
-
.ft-icon--fluid-topics {
|
|
393
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
391
394
|
font-family: ${Be.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
395
|
+
|
|
396
|
+
/* Ugly fix because font is broken */
|
|
397
|
+
font-size: calc(0.9 * ${Be.size});
|
|
398
|
+
position: relative;
|
|
399
|
+
top: -5%;
|
|
392
400
|
}
|
|
393
401
|
|
|
394
402
|
.ft-icon--file-format {
|
|
@@ -403,7 +411,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
403
411
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
404
412
|
<slot ?hidden=${t}></slot>
|
|
405
413
|
</i>
|
|
406
|
-
`}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 o=this.value||this.textContent;switch(this.variant){case Ee.file_format:this.resolvedIcon=null!==(t=Se[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ee.fluid_topics:this.resolvedIcon=null!==(e=ke[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}De.elementDefinitions={},De.styles=Ce,Ie([o.property()],De.prototype,"variant",void 0),Ie([o.property()],De.prototype,"value",void 0),Ie([o.state()],De.prototype,"resolvedIcon",void 0),Ie([o.query("slot")],De.prototype,"slottedContent",void 0),e.customElement("ft-icon")(De);const Fe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Le={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Fe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",
|
|
414
|
+
`}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 o=this.value||this.textContent;switch(this.variant){case Ee.file_format:this.resolvedIcon=null!==(t=Se[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ee.fluid_topics:this.resolvedIcon=null!==(e=ke[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}De.elementDefinitions={},De.styles=Ce,Ie([o.property()],De.prototype,"variant",void 0),Ie([o.property()],De.prototype,"value",void 0),Ie([o.state()],De.prototype,"resolvedIcon",void 0),Ie([o.query("slot")],De.prototype,"slottedContent",void 0),e.customElement("ft-icon")(De);const Fe=e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorPrimary),Le={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusL),color:Fe,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size",Zt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color",Fe),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},je=e.FtCssVariableFactory.extend("--ft-button-primary-color",e.FtCssVariableFactory.extend("--ft-button-color",e.designSystemVariables.colorOnPrimary)),Me={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color",e.FtCssVariableFactory.extend("--ft-button-background-color",e.designSystemVariables.colorPrimary)),color:je,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",je)},Pe=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius",e.FtCssVariableFactory.extend("--ft-button-border-radius",e.designSystemVariables.borderRadiusM)),Ae=[e.noTextSelect,i.css`
|
|
407
415
|
:host {
|
|
408
416
|
display: inline-block;
|
|
409
417
|
max-width: 100%;
|
|
@@ -499,8 +507,8 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
499
507
|
text-overflow: ellipsis;
|
|
500
508
|
display: block;
|
|
501
509
|
margin: 0 var(--ft-button-internal-horizontal-padding);
|
|
502
|
-
${e.setVariable(
|
|
503
|
-
${e.setVariable(
|
|
510
|
+
${e.setVariable(Zt.fontSize,"1em")};
|
|
511
|
+
${e.setVariable(Zt.lineHeight,"var(--ft-button-internal-content-height)")};
|
|
504
512
|
}
|
|
505
513
|
|
|
506
514
|
.ft-button--safari-fix .ft-button--label {
|
|
@@ -558,7 +566,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
558
566
|
</ft-tooltip>
|
|
559
567
|
`:t}resolveIcon(){return this.loading?i.html`
|
|
560
568
|
<ft-loader></ft-loader> `:this.icon?i.html`
|
|
561
|
-
<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":be,"ft-tooltip":ye,"ft-typography":te,"ft-icon":De,"ft-loader":we},Te.styles=Ae,Ne([o.property({type:Boolean})],Te.prototype,"primary",void 0),Ne([o.property({type:Boolean})],Te.prototype,"outlined",void 0),Ne([o.property({type:Boolean})],Te.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Te.prototype,"dense",void 0),Ne([o.property({type:Boolean})],Te.prototype,"round",void 0),Ne([o.property({type:String})],Te.prototype,"label",void 0),Ne([o.property({type:String})],Te.prototype,"icon",void 0),Ne([o.property({type:String})],Te.prototype,"iconVariant",void 0),Ne([o.property({type:Boolean})],Te.prototype,"trailingIcon",void 0),Ne([o.property({type:Boolean})],Te.prototype,"loading",void 0),Ne([o.property({type:String})],Te.prototype,"tooltipPosition",void 0),Ne([o.property({type:Boolean})],Te.prototype,"hideTooltip",void 0),Ne([o.property({type:Boolean})],Te.prototype,"forceTooltip",void 0),Ne([o.query(".ft-button")],Te.prototype,"button",void 0),Ne([o.query(".ft-button--label slot")],Te.prototype,"slottedContent",void 0),e.customElement("ft-button")(Te);const Re=e.FtCssVariableFactory.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),
|
|
569
|
+
<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":be,"ft-tooltip":ye,"ft-typography":te,"ft-icon":De,"ft-loader":we},Te.styles=Ae,Ne([o.property({type:Boolean})],Te.prototype,"primary",void 0),Ne([o.property({type:Boolean})],Te.prototype,"outlined",void 0),Ne([o.property({type:Boolean})],Te.prototype,"disabled",void 0),Ne([o.property({type:Boolean})],Te.prototype,"dense",void 0),Ne([o.property({type:Boolean})],Te.prototype,"round",void 0),Ne([o.property({type:String})],Te.prototype,"label",void 0),Ne([o.property({type:String})],Te.prototype,"icon",void 0),Ne([o.property({type:String})],Te.prototype,"iconVariant",void 0),Ne([o.property({type:Boolean})],Te.prototype,"trailingIcon",void 0),Ne([o.property({type:Boolean})],Te.prototype,"loading",void 0),Ne([o.property({type:String})],Te.prototype,"tooltipPosition",void 0),Ne([o.property({type:Boolean})],Te.prototype,"hideTooltip",void 0),Ne([o.property({type:Boolean})],Te.prototype,"forceTooltip",void 0),Ne([o.query(".ft-button")],Te.prototype,"button",void 0),Ne([o.query(".ft-button--label slot")],Te.prototype,"slottedContent",void 0),e.customElement("ft-button")(Te);const Re=e.FtCssVariableFactory.extend("--ft-checkbox-text-color",e.designSystemVariables.colorOnSurfaceHigh),Ze=e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),Ue=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnPrimary,"Design system"),_e=e.FtCssVariableFactory.extend("--ft-checkbox-border-color",e.designSystemVariables.colorOnSurfaceMedium),He=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),Ve=i.css`
|
|
562
570
|
* {
|
|
563
571
|
box-sizing: border-box;
|
|
564
572
|
}
|
|
@@ -603,14 +611,14 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
603
611
|
width: 18px;
|
|
604
612
|
height: 18px;
|
|
605
613
|
|
|
606
|
-
color: ${
|
|
614
|
+
color: ${Ue};
|
|
607
615
|
}
|
|
608
616
|
|
|
609
617
|
|
|
610
618
|
.ft-checkbox--checked .ft-checkbox--box,
|
|
611
619
|
.ft-checkbox--indeterminate .ft-checkbox--box {
|
|
612
|
-
border-color: ${
|
|
613
|
-
background-color: ${
|
|
620
|
+
border-color: ${Ze};
|
|
621
|
+
background-color: ${Ze};
|
|
614
622
|
}
|
|
615
623
|
|
|
616
624
|
.ft-checkbox--disabled .ft-checkbox--box {
|
|
@@ -1315,7 +1323,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1315
1323
|
</div>
|
|
1316
1324
|
<div class="ft-accordion-item--separator" part="separator"></div>
|
|
1317
1325
|
</div>
|
|
1318
|
-
`}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)}}Mi.elementDefinitions={"ft-ripple":be,"ft-typography":te,"ft-icon":De},Mi.styles=Li,ji([o.property({type:String})],Mi.prototype,"icon",void 0),ji([o.property({type:String})],Mi.prototype,"label",void 0),ji([o.property({type:Boolean,reflect:!0})],Mi.prototype,"active",void 0),e.customElement("ft-accordion")(Ei),e.customElement("ft-accordion-item")(Mi);const Pi=e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),Ai={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:Pi,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size",Bt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color",Pi),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")},Ni=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:Ni,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ni)},Ri=e.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),
|
|
1326
|
+
`}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)}}Mi.elementDefinitions={"ft-ripple":be,"ft-typography":te,"ft-icon":De},Mi.styles=Li,ji([o.property({type:String})],Mi.prototype,"icon",void 0),ji([o.property({type:String})],Mi.prototype,"label",void 0),ji([o.property({type:Boolean,reflect:!0})],Mi.prototype,"active",void 0),e.customElement("ft-accordion")(Ei),e.customElement("ft-accordion-item")(Mi);const Pi=e.FtCssVariableFactory.extend("--ft-chip-color",e.designSystemVariables.colorOnSurface),Ai={backgroundColor:e.FtCssVariableFactory.extend("--ft-chip-background-color",e.designSystemVariables.colorSurface),color:Pi,fontSize:e.FtCssVariableFactory.extend("--ft-chip-font-size",Bt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-chip-icon-size","SIZE","18px"),rippleColor:e.FtCssVariableFactory.extend("--ft-chip-ripple-color",Pi),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")},Ni=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:Ni,rippleColor:e.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color",Ni)},Ri=e.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","SIZE","4px"),Zi=e.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","SIZE","4px"),Ui=[e.noTextSelect,i.css`
|
|
1319
1327
|
:host {
|
|
1320
1328
|
display: inline-block;
|
|
1321
1329
|
max-width: 100%;
|
|
@@ -1355,7 +1363,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1355
1363
|
|
|
1356
1364
|
.ft-chip--dense {
|
|
1357
1365
|
--ft-chip-internal-icon-padding: 3px;
|
|
1358
|
-
--ft-chip-internal-vertical-padding: ${
|
|
1366
|
+
--ft-chip-internal-vertical-padding: ${Zi};
|
|
1359
1367
|
--ft-chip-internal-horizontal-padding: ${Ri};
|
|
1360
1368
|
--ft-chip-internal-line-height: max(16px, calc(var(--ft-chip-internal-font-size) + 2px));
|
|
1361
1369
|
}
|
|
@@ -1464,7 +1472,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1464
1472
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
1465
1473
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
1466
1474
|
</div>
|
|
1467
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Hi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Hi))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Vi.elementDefinitions={"ft-ripple":be,"ft-typography":te,"ft-icon":De},Vi.styles=
|
|
1475
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new Hi))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new Hi))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Vi.elementDefinitions={"ft-ripple":be,"ft-typography":te,"ft-icon":De},Vi.styles=Ui,_i([o.property({type:Boolean})],Vi.prototype,"highlighted",void 0),_i([o.property({type:Boolean})],Vi.prototype,"removable",void 0),_i([o.property({type:Boolean})],Vi.prototype,"disabled",void 0),_i([o.property({type:Boolean})],Vi.prototype,"clickable",void 0),_i([o.property({type:Boolean})],Vi.prototype,"iconClickable",void 0),_i([o.property({type:Boolean})],Vi.prototype,"dense",void 0),_i([o.property({type:Boolean})],Vi.prototype,"multiLine",void 0),_i([o.property({type:String})],Vi.prototype,"label",void 0),_i([o.property({type:String})],Vi.prototype,"icon",void 0),_i([o.property({type:Boolean})],Vi.prototype,"trailingIcon",void 0),_i([o.query("ft-typography slot")],Vi.prototype,"slottedContent",void 0),e.customElement("ft-chip")(Vi);const Ki={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},qi=i.css`
|
|
1468
1476
|
.ft-input-label {
|
|
1469
1477
|
position: absolute;
|
|
1470
1478
|
inset: 0;
|
|
@@ -1495,7 +1503,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1495
1503
|
}
|
|
1496
1504
|
|
|
1497
1505
|
.ft-input-label:before {
|
|
1498
|
-
width: ${Ki.horizontalSpacing};
|
|
1506
|
+
width: calc(${Ki.horizontalSpacing} - 4px);
|
|
1499
1507
|
flex-shrink: 0;
|
|
1500
1508
|
}
|
|
1501
1509
|
|
|
@@ -1513,6 +1521,8 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1513
1521
|
border-color: inherit;
|
|
1514
1522
|
color: ${Ki.textColor};
|
|
1515
1523
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1524
|
+
max-width: calc(${Ki.labelMaxWidth} - 2 * (${Ki.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1525
|
+
text-overflow: ellipsis;
|
|
1516
1526
|
${e.setVariable(Ct.fontSize,Ki.fontSize)};
|
|
1517
1527
|
${e.setVariable(Ct.lineHeight,Ki.fontSize)};
|
|
1518
1528
|
}
|
|
@@ -1528,6 +1538,8 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1528
1538
|
.ft-input-label--hidden-text {
|
|
1529
1539
|
padding: 0 4px;
|
|
1530
1540
|
opacity: 0;
|
|
1541
|
+
max-width: 100%;
|
|
1542
|
+
box-sizing: border-box;
|
|
1531
1543
|
}
|
|
1532
1544
|
|
|
1533
1545
|
.ft-input-label--floating-text {
|
|
@@ -1539,6 +1551,8 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1539
1551
|
text-overflow: ellipsis;
|
|
1540
1552
|
padding: ${Ki.verticalSpacing} 4px;
|
|
1541
1553
|
margin: calc(${Ki.verticalSpacing} * -1) 0;
|
|
1554
|
+
max-width: 100%;
|
|
1555
|
+
box-sizing: border-box;
|
|
1542
1556
|
}
|
|
1543
1557
|
|
|
1544
1558
|
.ft-input-label--raised .ft-input-label--text {
|
|
@@ -1589,7 +1603,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1589
1603
|
</div>
|
|
1590
1604
|
`:null}
|
|
1591
1605
|
</div>
|
|
1592
|
-
`}}Gi.elementDefinitions={},Gi.styles=[Wt,qi],Wi([o.property({type:String})],Gi.prototype,"text",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"raised",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"outlined",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"disabled",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"error",void 0),e.customElement("ft-input-label")(Gi);const Xi={labelSize:e.FtCssVariableFactory.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariableFactory.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:e.FtCssVariableFactory.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariableFactory.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariableFactory.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariableFactory.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariableFactory.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Yi=i.css`
|
|
1606
|
+
`}}Gi.elementDefinitions={},Gi.styles=[Wt,qi],Wi([o.property({type:String})],Gi.prototype,"text",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"raised",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"outlined",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"disabled",void 0),Wi([o.property({type:Boolean})],Gi.prototype,"error",void 0),e.customElement("ft-input-label")(Gi);const Xi={labelSize:e.FtCssVariableFactory.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariableFactory.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:e.FtCssVariableFactory.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:e.FtCssVariableFactory.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariableFactory.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariableFactory.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariableFactory.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},Yi=i.css`
|
|
1593
1607
|
*:focus {
|
|
1594
1608
|
outline: none;
|
|
1595
1609
|
}
|
|
@@ -1612,8 +1626,8 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1612
1626
|
display: flex;
|
|
1613
1627
|
align-items: center;
|
|
1614
1628
|
overflow: hidden;
|
|
1615
|
-
padding-left:
|
|
1616
|
-
padding-right:
|
|
1629
|
+
padding-left: ${Xi.horizontalSpacing};
|
|
1630
|
+
padding-right: ${Xi.horizontalSpacing};
|
|
1617
1631
|
gap: 8px;
|
|
1618
1632
|
color: ${Xi.selectedOptionColor};
|
|
1619
1633
|
${e.setVariable(ne.color,Xi.selectedOptionColor)};
|
|
@@ -1644,6 +1658,8 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1644
1658
|
${e.setVariable(Ki.fontSize,Xi.selectedOptionSize)};
|
|
1645
1659
|
${e.setVariable(Ki.raisedFontSize,Xi.labelSize)};
|
|
1646
1660
|
${e.setVariable(Ki.verticalSpacing,Xi.verticalSpacing)};
|
|
1661
|
+
${e.setVariable(Ki.horizontalSpacing,Xi.horizontalSpacing)};
|
|
1662
|
+
${e.setVariable(Ki.labelMaxWidth,`calc(100% - ${Be.size} - 8px)`)};
|
|
1647
1663
|
}
|
|
1648
1664
|
|
|
1649
1665
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1717,7 +1733,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1717
1733
|
|
|
1718
1734
|
.ft-select--option {
|
|
1719
1735
|
position: relative;
|
|
1720
|
-
padding: 4px
|
|
1736
|
+
padding: 4px ${Xi.horizontalSpacing};
|
|
1721
1737
|
min-height: 32px;
|
|
1722
1738
|
display: flex;
|
|
1723
1739
|
align-items: center;
|
|
@@ -1729,7 +1745,7 @@ const q=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===q)return null==t?void 0:t
|
|
|
1729
1745
|
}
|
|
1730
1746
|
|
|
1731
1747
|
.ft-select--helper-text {
|
|
1732
|
-
padding: 0
|
|
1748
|
+
padding: 0 ${Xi.horizontalSpacing};
|
|
1733
1749
|
color: ${Xi.helperColor};
|
|
1734
1750
|
}
|
|
1735
1751
|
|
|
@@ -66,7 +66,7 @@ var l;const a=null!=(null===(l=window.HTMLSlotElement)||void 0===l?void 0:l.prot
|
|
|
66
66
|
* Copyright 2017 Google LLC
|
|
67
67
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
68
68
|
*/
|
|
69
|
-
var N;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:M}),(null!==(w=k.reactiveElementVersions)&&void 0!==w?w:k.reactiveElementVersions=[]).push("1.4.1");const F=window,R=F.trustedTypes,L=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,
|
|
69
|
+
var N;M.finalized=!0,M.elementProperties=new Map,M.elementStyles=[],M.shadowRootOptions={mode:"open"},null==C||C({ReactiveElement:M}),(null!==(w=k.reactiveElementVersions)&&void 0!==w?w:k.reactiveElementVersions=[]).push("1.4.1");const F=window,R=F.trustedTypes,L=R?R.createPolicy("lit-html",{createHTML:t=>t}):void 0,j=`lit$${(Math.random()+"").slice(9)}$`,D="?"+j,I=`<${D}>`,U=document,P=(t="")=>U.createComment(t),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_=t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Z=/-->/g,K=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),V=/'/g,q=/"/g,J=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),G=new WeakMap,tt=U.createTreeWalker(U,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let s,r=2===e?"<svg>":"",n=H;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===H?"!--"===a[1]?n=Z:void 0!==a[1]?n=K:void 0!==a[2]?(J.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=W):void 0!==a[3]&&(n=W):n===W?">"===a[0]?(n=null!=s?s:H,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?W:'"'===a[3]?q:V):n===q||n===V?n=W:n===Z||n===K?n=H:(n=W,s=void 0);const p=n===W&&t[e+1].startsWith("/>")?" ":"";r+=n===H?i+I:c>=0?(o.push(l),i.slice(0,c)+"$lit$"+i.slice(c)+j+p):i+j+(-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!==L?L.createHTML(l):l,o]};class it{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]=et(t,e);if(this.el=it.createElement(a,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=tt.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(j)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(j),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?ct:"@"===e[1]?ht:nt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(J.test(o.tagName)){const t=o.textContent.split(j),e=t.length-1;if(e>0){o.textContent=R?R.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],P()),tt.nextNode(),l.push({type:2,index:++s});o.append(t[e],P())}}}else if(8===o.nodeType)if(o.data===D)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(j,t+1));)l.push({type:7,index:s}),t+=j.length-1}s++}}static createElement(t,e){const i=U.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var s,r,n,l;if(e===Y)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const c=A(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)._$Co)&&void 0!==n?n:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=ot(t,a._$AS(t,e.values),a,o)),e}class st{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:U).importNode(i,!0);tt.currentNode=s;let r=tt.nextNode(),n=0,l=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new rt(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new pt(r,this,t)),this.u.push(e),a=o[++l]}n!==(null==a?void 0:a.index)&&(r=tt.nextNode(),n++)}return s}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class rt{constructor(t,e,i,o){var s;this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),A(t)?t===Q||null==t||""===t?(this._$AH!==Q&&this._$AR(),this._$AH=Q):t!==this._$AH&&t!==Y&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):_(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==Q&&A(this._$AH)?this._$AA.nextSibling.data=t:this.T(U.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=it.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.p(i);else{const t=new st(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=G.get(t.strings);return void 0===e&&G.set(t.strings,e=new it(t)),e}k(t){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 rt(this.O(P()),this.O(P()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class nt{constructor(t,e,i,o,s){this.type=1,this._$AH=Q,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=Q}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=ot(this,t,e,0),r=!A(t)||t!==this._$AH&&t!==Y,r&&(this._$AH=t);else{const o=t;let n,l;for(t=s[0],n=0;n<s.length-1;n++)l=ot(this,o[i+n],e,n),l===Y&&(l=this._$AH[n]),r||(r=!A(l)||l!==this._$AH[n]),l===Q?t=Q:t!==Q&&(t+=(null!=l?l:"")+s[n+1]),this._$AH[n]=l}r&&!o&&this.j(t)}j(t){t===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends nt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Q?void 0:t}}const at=R?R.emptyScript:"";class ct extends nt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Q?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ht extends nt{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=ot(this,t,e,0))&&void 0!==i?i:Q)===Y)return;const o=this._$AH,s=t===Q&&o!==Q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==Q&&(o===Q||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 pt{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){ot(this,t)}}const dt={P:"$lit$",A:j,M:D,C:1,L:et,R:st,D:_,V:ot,I:rt,H:nt,N:ct,U:ht,B:lt,F:pt},ft=F.litHtmlPolyfillSupport;null==ft||ft(it,rt),(null!==(N=F.litHtmlVersions)&&void 0!==N?N:F.litHtmlVersions=[]).push("2.4.0");
|
|
70
70
|
/**
|
|
71
71
|
* @license
|
|
72
72
|
* Copyright 2017 Google LLC
|
|
@@ -113,7 +113,7 @@ var ut,bt;class vt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
113
113
|
* @license
|
|
114
114
|
* Copyright 2020 Google LLC
|
|
115
115
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
116
|
-
*/const{I:Lt}=dt,
|
|
116
|
+
*/const{I:Lt}=dt,jt=()=>document.createComment(""),Dt=(t,e,i)=>{var o;const s=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(jt(),r),o=s.insertBefore(jt(),r);i=new Lt(e,o,t,t.options)}else{const e=i._$AB.nextSibling,n=i._$AM,l=n!==t;if(l){let e;null===(o=i._$AQ)||void 0===o||o.call(i,t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==n._$AU&&i._$AP(e)}if(e!==r||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,r),t=e}}}return i},It=(t,e,i=t)=>(t._$AI(e,i),t),Ut={},Pt=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let i=t._$AA;const o=t._$AB.nextSibling;for(;i!==o;){const t=i.nextSibling;i.remove(),i=t}},At=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},Tt=Ft(class extends Rt{constructor(t){if(super(t),t.type!==Nt)throw Error("repeat() can only be used in text expressions")}ht(t,e,i){let o;void 0===i?i=e:void 0!==e&&(o=e);const s=[],r=[];let n=0;for(const e of t)s[n]=o?o(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const r=(t=>t._$AH)(t),{values:n,keys:l}=this.ht(e,i,o);if(!Array.isArray(r))return this.ut=l,n;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],c=[];let h,p,d=0,f=r.length-1,u=0,b=n.length-1;for(;d<=f&&u<=b;)if(null===r[d])d++;else if(null===r[f])f--;else if(a[d]===l[u])c[u]=It(r[d],n[u]),d++,u++;else if(a[f]===l[b])c[b]=It(r[f],n[b]),f--,b--;else if(a[d]===l[b])c[b]=It(r[d],n[b]),Dt(t,c[b+1],r[d]),d++,b--;else if(a[f]===l[u])c[u]=It(r[f],n[u]),Dt(t,r[d],r[f]),f--,u++;else if(void 0===h&&(h=At(l,u,b),p=At(a,d,f)),h.has(a[d]))if(h.has(a[f])){const e=p.get(l[u]),i=void 0!==e?r[e]:null;if(null===i){const e=Dt(t,r[d]);It(e,n[u]),c[u]=e}else c[u]=It(i,n[u]),Dt(t,r[d],i),r[e]=null;u++}else Pt(r[f]),f--;else Pt(r[d]),d++;for(;u<=b;){const e=Dt(t,c[b+1]);It(e,n[u]),c[u++]=e}for(;d<=f;){const t=r[d++];null!==t&&Pt(t)}return this.ut=l,((t,e=Ut)=>{t._$AH=e})(t,c),Y}});
|
|
117
117
|
/**
|
|
118
118
|
* @license
|
|
119
119
|
* Copyright 2017 Google LLC
|
|
@@ -147,7 +147,7 @@ var ut,bt;class vt extends M{constructor(){super(...arguments),this.renderOption
|
|
|
147
147
|
* Copyright 2020 Google LLC
|
|
148
148
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
149
149
|
*/
|
|
150
|
-
const Vt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void 0:t._$litStatic$},Jt=t=>({_$litStatic$:t,r:Vt}),Xt=new Map,Yt=(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=qt(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=Xt.get(t))&&(n.raw=n,Xt.set(t,e=n)),i=l}return t(e,...i)})(X);var Qt;!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"}(Qt||(Qt={}));const Gt=xt.extend("--ft-typography-font-family",mt.titleFont),te=xt.extend("--ft-typography-font-family",mt.contentFont),ee={fontFamily:te,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ie=xt.extend("--ft-typography-title-font-family",Gt),oe=xt.extend("--ft-typography-title-font-size",ee.fontSize,"20px"),se=xt.extend("--ft-typography-title-font-weight",ee.fontWeight,"normal"),re=xt.extend("--ft-typography-title-letter-spacing",ee.letterSpacing,"0.15px"),ne=xt.extend("--ft-typography-title-line-height",ee.lineHeight,"1.2"),le=xt.extend("--ft-typography-title-text-transform",ee.textTransform,"inherit"),ae=xt.extend("--ft-typography-title-dense-font-family",Gt),ce=xt.extend("--ft-typography-title-dense-font-size",ee.fontSize,"14px"),he=xt.extend("--ft-typography-title-dense-font-weight",ee.fontWeight,"normal"),pe=xt.extend("--ft-typography-title-dense-letter-spacing",ee.letterSpacing,"0.105px"),de=xt.extend("--ft-typography-title-dense-line-height",ee.lineHeight,"1.7"),fe=xt.extend("--ft-typography-title-dense-text-transform",ee.textTransform,"inherit"),ue=xt.extend("--ft-typography-subtitle1-font-family",te),be=xt.extend("--ft-typography-subtitle1-font-size",ee.fontSize,"16px"),ve=xt.extend("--ft-typography-subtitle1-font-weight",ee.fontWeight,"600"),ge=xt.extend("--ft-typography-subtitle1-letter-spacing",ee.letterSpacing,"0.144px"),xe=xt.extend("--ft-typography-subtitle1-line-height",ee.lineHeight,"1.5"),ye=xt.extend("--ft-typography-subtitle1-text-transform",ee.textTransform,"inherit"),me=xt.extend("--ft-typography-subtitle2-font-family",te),$e=xt.extend("--ft-typography-subtitle2-font-size",ee.fontSize,"14px"),we=xt.extend("--ft-typography-subtitle2-font-weight",ee.fontWeight,"normal"),ke=xt.extend("--ft-typography-subtitle2-letter-spacing",ee.letterSpacing,"0.098px"),Se=xt.extend("--ft-typography-subtitle2-line-height",ee.lineHeight,"1.7"),Oe=xt.extend("--ft-typography-subtitle2-text-transform",ee.textTransform,"inherit"),Ce={fontFamily:xt.extend("--ft-typography-body1-font-family",te),fontSize:xt.extend("--ft-typography-body1-font-size",ee.fontSize,"16px"),fontWeight:xt.extend("--ft-typography-body1-font-weight",ee.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body1-letter-spacing",ee.letterSpacing,"0.496px"),lineHeight:xt.extend("--ft-typography-body1-line-height",ee.lineHeight,"1.5"),textTransform:xt.extend("--ft-typography-body1-text-transform",ee.textTransform,"inherit")},Ee={fontFamily:xt.extend("--ft-typography-body2-font-family",te),fontSize:xt.extend("--ft-typography-body2-font-size",ee.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-body2-font-weight",ee.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body2-letter-spacing",ee.letterSpacing,"0.252px"),lineHeight:xt.extend("--ft-typography-body2-line-height",ee.lineHeight,"1.4"),textTransform:xt.extend("--ft-typography-body2-text-transform",ee.textTransform,"inherit")},ze={fontFamily:xt.extend("--ft-typography-caption-font-family",te),fontSize:xt.extend("--ft-typography-caption-font-size",ee.fontSize,"12px"),fontWeight:xt.extend("--ft-typography-caption-font-weight",ee.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-caption-letter-spacing",ee.letterSpacing,"0.396px"),lineHeight:xt.extend("--ft-typography-caption-line-height",ee.lineHeight,"1.33"),textTransform:xt.extend("--ft-typography-caption-text-transform",ee.textTransform,"inherit")},Be=xt.extend("--ft-typography-breadcrumb-font-family",te),Me=xt.extend("--ft-typography-breadcrumb-font-size",ee.fontSize,"10px"),Ne=xt.extend("--ft-typography-breadcrumb-font-weight",ee.fontWeight,"normal"),Fe=xt.extend("--ft-typography-breadcrumb-letter-spacing",ee.letterSpacing,"0.33px"),Re=xt.extend("--ft-typography-breadcrumb-line-height",ee.lineHeight,"1.6"),Le=xt.extend("--ft-typography-breadcrumb-text-transform",ee.textTransform,"inherit"),
|
|
150
|
+
const Vt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void 0:t._$litStatic$},Jt=t=>({_$litStatic$:t,r:Vt}),Xt=new Map,Yt=(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=qt(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=Xt.get(t))&&(n.raw=n,Xt.set(t,e=n)),i=l}return t(e,...i)})(X);var Qt;!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"}(Qt||(Qt={}));const Gt=xt.extend("--ft-typography-font-family",mt.titleFont),te=xt.extend("--ft-typography-font-family",mt.contentFont),ee={fontFamily:te,fontSize:xt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:xt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:xt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:xt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:xt.create("--ft-typography-text-transform","UNKNOWN","inherit")},ie=xt.extend("--ft-typography-title-font-family",Gt),oe=xt.extend("--ft-typography-title-font-size",ee.fontSize,"20px"),se=xt.extend("--ft-typography-title-font-weight",ee.fontWeight,"normal"),re=xt.extend("--ft-typography-title-letter-spacing",ee.letterSpacing,"0.15px"),ne=xt.extend("--ft-typography-title-line-height",ee.lineHeight,"1.2"),le=xt.extend("--ft-typography-title-text-transform",ee.textTransform,"inherit"),ae=xt.extend("--ft-typography-title-dense-font-family",Gt),ce=xt.extend("--ft-typography-title-dense-font-size",ee.fontSize,"14px"),he=xt.extend("--ft-typography-title-dense-font-weight",ee.fontWeight,"normal"),pe=xt.extend("--ft-typography-title-dense-letter-spacing",ee.letterSpacing,"0.105px"),de=xt.extend("--ft-typography-title-dense-line-height",ee.lineHeight,"1.7"),fe=xt.extend("--ft-typography-title-dense-text-transform",ee.textTransform,"inherit"),ue=xt.extend("--ft-typography-subtitle1-font-family",te),be=xt.extend("--ft-typography-subtitle1-font-size",ee.fontSize,"16px"),ve=xt.extend("--ft-typography-subtitle1-font-weight",ee.fontWeight,"600"),ge=xt.extend("--ft-typography-subtitle1-letter-spacing",ee.letterSpacing,"0.144px"),xe=xt.extend("--ft-typography-subtitle1-line-height",ee.lineHeight,"1.5"),ye=xt.extend("--ft-typography-subtitle1-text-transform",ee.textTransform,"inherit"),me=xt.extend("--ft-typography-subtitle2-font-family",te),$e=xt.extend("--ft-typography-subtitle2-font-size",ee.fontSize,"14px"),we=xt.extend("--ft-typography-subtitle2-font-weight",ee.fontWeight,"normal"),ke=xt.extend("--ft-typography-subtitle2-letter-spacing",ee.letterSpacing,"0.098px"),Se=xt.extend("--ft-typography-subtitle2-line-height",ee.lineHeight,"1.7"),Oe=xt.extend("--ft-typography-subtitle2-text-transform",ee.textTransform,"inherit"),Ce={fontFamily:xt.extend("--ft-typography-body1-font-family",te),fontSize:xt.extend("--ft-typography-body1-font-size",ee.fontSize,"16px"),fontWeight:xt.extend("--ft-typography-body1-font-weight",ee.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body1-letter-spacing",ee.letterSpacing,"0.496px"),lineHeight:xt.extend("--ft-typography-body1-line-height",ee.lineHeight,"1.5"),textTransform:xt.extend("--ft-typography-body1-text-transform",ee.textTransform,"inherit")},Ee={fontFamily:xt.extend("--ft-typography-body2-font-family",te),fontSize:xt.extend("--ft-typography-body2-font-size",ee.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-body2-font-weight",ee.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-body2-letter-spacing",ee.letterSpacing,"0.252px"),lineHeight:xt.extend("--ft-typography-body2-line-height",ee.lineHeight,"1.4"),textTransform:xt.extend("--ft-typography-body2-text-transform",ee.textTransform,"inherit")},ze={fontFamily:xt.extend("--ft-typography-caption-font-family",te),fontSize:xt.extend("--ft-typography-caption-font-size",ee.fontSize,"12px"),fontWeight:xt.extend("--ft-typography-caption-font-weight",ee.fontWeight,"normal"),letterSpacing:xt.extend("--ft-typography-caption-letter-spacing",ee.letterSpacing,"0.396px"),lineHeight:xt.extend("--ft-typography-caption-line-height",ee.lineHeight,"1.33"),textTransform:xt.extend("--ft-typography-caption-text-transform",ee.textTransform,"inherit")},Be=xt.extend("--ft-typography-breadcrumb-font-family",te),Me=xt.extend("--ft-typography-breadcrumb-font-size",ee.fontSize,"10px"),Ne=xt.extend("--ft-typography-breadcrumb-font-weight",ee.fontWeight,"normal"),Fe=xt.extend("--ft-typography-breadcrumb-letter-spacing",ee.letterSpacing,"0.33px"),Re=xt.extend("--ft-typography-breadcrumb-line-height",ee.lineHeight,"1.6"),Le=xt.extend("--ft-typography-breadcrumb-text-transform",ee.textTransform,"inherit"),je=xt.extend("--ft-typography-overline-font-family",te),De=xt.extend("--ft-typography-overline-font-size",ee.fontSize,"10px"),Ie=xt.extend("--ft-typography-overline-font-weight",ee.fontWeight,"normal"),Ue=xt.extend("--ft-typography-overline-letter-spacing",ee.letterSpacing,"1.5px"),Pe=xt.extend("--ft-typography-overline-line-height",ee.lineHeight,"1.6"),Ae=xt.extend("--ft-typography-overline-text-transform",ee.textTransform,"uppercase"),Te={fontFamily:xt.extend("--ft-typography-button-font-family",te),fontSize:xt.extend("--ft-typography-button-font-size",ee.fontSize,"14px"),fontWeight:xt.extend("--ft-typography-button-font-weight",ee.fontWeight,"600"),letterSpacing:xt.extend("--ft-typography-button-letter-spacing",ee.letterSpacing,"1.246px"),lineHeight:xt.extend("--ft-typography-button-line-height",ee.lineHeight,"1.15"),textTransform:xt.extend("--ft-typography-button-text-transform",ee.textTransform,"uppercase")},_e=y`
|
|
151
151
|
.ft-typography--title {
|
|
152
152
|
font-family: ${ie};
|
|
153
153
|
font-size: ${oe};
|
|
@@ -222,8 +222,8 @@ const Vt=Symbol.for(""),qt=t=>{if((null==t?void 0:t.r)===Vt)return null==t?void
|
|
|
222
222
|
}
|
|
223
223
|
`,Xe=y`
|
|
224
224
|
.ft-typography--overline {
|
|
225
|
-
font-family: ${
|
|
226
|
-
font-size: ${
|
|
225
|
+
font-family: ${je};
|
|
226
|
+
font-size: ${De};
|
|
227
227
|
font-weight: ${Ie};
|
|
228
228
|
letter-spacing: ${Ue};
|
|
229
229
|
line-height: ${Pe};
|
|
@@ -493,18 +493,21 @@ const ri=Ft(class extends Rt{constructor(t){var e;if(super(t),t.type!==Mt||"clas
|
|
|
493
493
|
* Copyright 2017 Google LLC
|
|
494
494
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
495
495
|
*/
|
|
496
|
-
class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this._t=void 0,this.it=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Si.directiveName="unsafeHTML",Si.resultType=1;const Oi=Ft(Si);var Ci,Ei;!function(t){t.
|
|
497
|
-
:host {
|
|
498
|
-
display: inline-
|
|
496
|
+
class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===Q||null==t)return this._t=void 0,this.it=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Si.directiveName="unsafeHTML",Si.resultType=1;const Oi=Ft(Si);var Ci,Ei;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(Ci||(Ci={})),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=""}(Ei||(Ei={}));const zi=new Map([...["abw"].map((t=>[t,Ei.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,Ei.AUDIO])),...["avi"].map((t=>[t,Ei.AVI])),...["chm","xhs"].map((t=>[t,Ei.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,Ei.CODE])),...["csv"].map((t=>[t,Ei.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ei.DITA])),...["epub"].map((t=>[t,Ei.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ei.EXCEL])),...["flac"].map((t=>[t,Ei.FLAC])),...["gif"].map((t=>[t,Ei.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ei.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ei.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,Ei.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ei.JPEG])),...["json"].map((t=>[t,Ei.JSON])),...["m4a","m4p"].map((t=>[t,Ei.M4A])),...["mov","qt"].map((t=>[t,Ei.MOV])),...["mp3"].map((t=>[t,Ei.MP3])),...["mp4","m4v"].map((t=>[t,Ei.MP4])),...["ogg","oga"].map((t=>[t,Ei.OGG])),...["pdf","ps"].map((t=>[t,Ei.PDF])),...["png"].map((t=>[t,Ei.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ei.POWERPOINT])),...["rar"].map((t=>[t,Ei.RAR])),...["stp"].map((t=>[t,Ei.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ei.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,Ei.VIDEO])),...["wav"].map((t=>[t,Ei.WAV])),...["wma"].map((t=>[t,Ei.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ei.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ei.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ei.YAML])),...["zip"].map((t=>[t,Ei.ZIP]))]),Bi=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);const Mi={size:xt.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:xt.extend("--ft-icon-fluid-topics-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:xt.extend("--ft-icon-file-format-font-family",xt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:xt.extend("--ft-icon-material-font-family",xt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:xt.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ni=y`
|
|
497
|
+
:host, i.ft-icon {
|
|
498
|
+
display: inline-flex;
|
|
499
|
+
align-items: center;
|
|
500
|
+
justify-content: center;
|
|
499
501
|
}
|
|
500
502
|
|
|
501
|
-
:host
|
|
503
|
+
:host {
|
|
502
504
|
width: ${Mi.size};
|
|
503
505
|
height: ${Mi.size};
|
|
504
|
-
text-align: center;
|
|
505
506
|
}
|
|
506
507
|
|
|
507
508
|
i.ft-icon {
|
|
509
|
+
width: 100%;
|
|
510
|
+
height: 100%;
|
|
508
511
|
font-size: ${Mi.size};
|
|
509
512
|
line-height: 1;
|
|
510
513
|
font-weight: normal;
|
|
@@ -519,8 +522,13 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
519
522
|
vertical-align: ${Mi.verticalAlign};
|
|
520
523
|
}
|
|
521
524
|
|
|
522
|
-
.ft-icon--fluid-topics {
|
|
525
|
+
i.ft-icon.ft-icon--fluid-topics {
|
|
523
526
|
font-family: ${Mi.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
527
|
+
|
|
528
|
+
/* Ugly fix because font is broken */
|
|
529
|
+
font-size: calc(0.9 * ${Mi.size});
|
|
530
|
+
position: relative;
|
|
531
|
+
top: -5%;
|
|
524
532
|
}
|
|
525
533
|
|
|
526
534
|
.ft-icon--file-format {
|
|
@@ -535,7 +543,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
535
543
|
${Oi(this.resolvedIcon)}
|
|
536
544
|
<slot ?hidden=${t}></slot>
|
|
537
545
|
</i>
|
|
538
|
-
`}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 Fi.file_format:this.resolvedIcon=null!==(t=Ei[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Fi.fluid_topics:this.resolvedIcon=null!==(e=Ci[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Li.elementDefinitions={},Li.styles=Ni,Ri([o()],Li.prototype,"variant",void 0),Ri([o()],Li.prototype,"value",void 0),Ri([s()],Li.prototype,"resolvedIcon",void 0),Ri([n("slot")],Li.prototype,"slottedContent",void 0),h("ft-icon")(Li);const
|
|
546
|
+
`}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 Fi.file_format:this.resolvedIcon=null!==(t=Ei[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Fi.fluid_topics:this.resolvedIcon=null!==(e=Ci[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||Q}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Li.elementDefinitions={},Li.styles=Ni,Ri([o()],Li.prototype,"variant",void 0),Ri([o()],Li.prototype,"value",void 0),Ri([s()],Li.prototype,"resolvedIcon",void 0),Ri([n("slot")],Li.prototype,"slottedContent",void 0),h("ft-icon")(Li);const ji=xt.extend("--ft-button-color",mt.colorPrimary),Di={backgroundColor:xt.extend("--ft-button-background-color",mt.colorSurface),borderRadius:xt.extend("--ft-button-border-radius",mt.borderRadiusL),color:ji,fontSize:xt.extend("--ft-button-font-size",Te.fontSize),iconSize:xt.create("--ft-button-icon-size","SIZE","24px"),rippleColor:xt.extend("--ft-button-ripple-color",ji),opacityDisabled:xt.external(mt.colorOpacityDisabled,"Design system")},Ii=xt.extend("--ft-button-primary-color",xt.extend("--ft-button-color",mt.colorOnPrimary)),Ui={backgroundColor:xt.extend("--ft-button-primary-background-color",xt.extend("--ft-button-background-color",mt.colorPrimary)),color:Ii,rippleColor:xt.extend("--ft-button-primary-ripple-color",Ii)},Pi=xt.extend("--ft-button-dense-border-radius",xt.extend("--ft-button-border-radius",mt.borderRadiusM)),Ai=[kt,y`
|
|
539
547
|
:host {
|
|
540
548
|
display: inline-block;
|
|
541
549
|
max-width: 100%;
|
|
@@ -546,7 +554,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
546
554
|
box-shadow: 0px 0px 0px transparent;
|
|
547
555
|
border: 0px solid transparent;
|
|
548
556
|
text-shadow: 0px 0px 0px transparent;
|
|
549
|
-
font-size: ${
|
|
557
|
+
font-size: ${Di.fontSize};
|
|
550
558
|
}
|
|
551
559
|
|
|
552
560
|
button:hover {
|
|
@@ -575,17 +583,17 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
575
583
|
border: none;
|
|
576
584
|
pointer-events: auto;
|
|
577
585
|
|
|
578
|
-
--ft-button-internal-line-height: calc(${
|
|
579
|
-
--ft-button-internal-color: ${
|
|
580
|
-
${yt(Mi.size,
|
|
586
|
+
--ft-button-internal-line-height: calc(${Di.fontSize} + 2px);
|
|
587
|
+
--ft-button-internal-color: ${Di.color};
|
|
588
|
+
${yt(Mi.size,Di.iconSize)};
|
|
581
589
|
--ft-button-internal-vertical-padding: 6px;
|
|
582
590
|
--ft-button-internal-horizontal-padding: 8px;
|
|
583
|
-
${yt(li.color,
|
|
584
|
-
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${
|
|
591
|
+
${yt(li.color,Di.rippleColor)};
|
|
592
|
+
--ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Di.iconSize});
|
|
585
593
|
|
|
586
|
-
border-radius: ${
|
|
594
|
+
border-radius: ${Di.borderRadius};
|
|
587
595
|
padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
|
|
588
|
-
background-color: ${
|
|
596
|
+
background-color: ${Di.backgroundColor};
|
|
589
597
|
color: var(--ft-button-internal-color);
|
|
590
598
|
-webkit-mask-image: radial-gradient(white, black);
|
|
591
599
|
}
|
|
@@ -606,7 +614,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
606
614
|
|
|
607
615
|
.ft-button[disabled] {
|
|
608
616
|
filter: grayscale(1);
|
|
609
|
-
opacity: ${
|
|
617
|
+
opacity: ${Di.opacityDisabled};
|
|
610
618
|
}
|
|
611
619
|
|
|
612
620
|
.ft-button.ft-button--primary {
|
|
@@ -665,7 +673,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
665
673
|
}
|
|
666
674
|
|
|
667
675
|
ft-loader {
|
|
668
|
-
${yt($i.size,
|
|
676
|
+
${yt($i.size,Di.iconSize)};
|
|
669
677
|
${yt($i.color,"var(--ft-button-internal-color)")};
|
|
670
678
|
}
|
|
671
679
|
`];var Ti=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 _i extends wt{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=Fi.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":Bt,"ft-no-text-select":!0};return this.addTooltipIfNeeded(X`
|
|
@@ -957,7 +965,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
957
965
|
}
|
|
958
966
|
|
|
959
967
|
ft-button {
|
|
960
|
-
${yt(
|
|
968
|
+
${yt(Di.color,ao.colorOnSurface)};
|
|
961
969
|
}
|
|
962
970
|
|
|
963
971
|
ft-radio, ft-checkbox {
|
|
@@ -1118,8 +1126,8 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1118
1126
|
z-index: ${fo.buttonsZIndex};
|
|
1119
1127
|
opacity: 1;
|
|
1120
1128
|
transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
|
|
1121
|
-
${yt(
|
|
1122
|
-
${yt(
|
|
1129
|
+
${yt(Di.backgroundColor,"transparent")};
|
|
1130
|
+
${yt(Di.color,fo.buttonsColor)};
|
|
1123
1131
|
}
|
|
1124
1132
|
|
|
1125
1133
|
.ft-snap-scroll--previous[hidden],
|
|
@@ -1215,7 +1223,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1215
1223
|
.ft-filter--header ft-button {
|
|
1216
1224
|
flex-shrink: 0;
|
|
1217
1225
|
margin-left: auto;
|
|
1218
|
-
${yt(
|
|
1226
|
+
${yt(Di.iconSize,"18px")};
|
|
1219
1227
|
}
|
|
1220
1228
|
|
|
1221
1229
|
.ft-filter--label {
|
|
@@ -1378,7 +1386,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1378
1386
|
<div class="ft-accordion">
|
|
1379
1387
|
<slot @activated=${this.onChange}></slot>
|
|
1380
1388
|
</div>
|
|
1381
|
-
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Ro.elementDefinitions={},Ro.styles=No,Fo([o({type:Boolean})],Ro.prototype,"multi",void 0),Fo([n("slot")],Ro.prototype,"content",void 0);const Lo=xt.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),
|
|
1389
|
+
`}onChange(t){t.stopPropagation(),this.multi||this.content.assignedElements().forEach((e=>e.active=e===t.target))}}Ro.elementDefinitions={},Ro.styles=No,Fo([o({type:Boolean})],Ro.prototype,"multi",void 0),Fo([n("slot")],Ro.prototype,"content",void 0);const Lo=xt.create("--ft-accordion-toggle-horizontal-spacing","SIZE","16px"),jo=xt.create("--ft-accordion-toggle-vertical-spacing","SIZE","16px"),Do=xt.external(mt.colorOutline,"Design system"),Io=y`
|
|
1382
1390
|
.ft-accordion-item {
|
|
1383
1391
|
display: flex;
|
|
1384
1392
|
flex-direction: column;
|
|
@@ -1391,7 +1399,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1391
1399
|
display: flex;
|
|
1392
1400
|
align-items: center;
|
|
1393
1401
|
cursor: pointer;
|
|
1394
|
-
padding: ${
|
|
1402
|
+
padding: ${jo} ${Lo};
|
|
1395
1403
|
gap: calc(${Lo} / 2);
|
|
1396
1404
|
outline: none;
|
|
1397
1405
|
}
|
|
@@ -1417,11 +1425,11 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1417
1425
|
.ft-accordion-item--active .ft-accordion-item--content {
|
|
1418
1426
|
height: initial;
|
|
1419
1427
|
overflow: visible;
|
|
1420
|
-
padding: ${
|
|
1428
|
+
padding: ${jo} ${Lo};
|
|
1421
1429
|
}
|
|
1422
1430
|
|
|
1423
1431
|
.ft-accordion-item--separator {
|
|
1424
|
-
border-bottom: 1px solid ${
|
|
1432
|
+
border-bottom: 1px solid ${Do};
|
|
1425
1433
|
}
|
|
1426
1434
|
`;var Uo=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 Po extends wt{constructor(){super(...arguments),this.icon="",this.label="",this.active=!1}render(){return X`
|
|
1427
1435
|
<div class="ft-accordion-item ${this.active?"ft-accordion-item--active":""}">
|
|
@@ -1596,7 +1604,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1596
1604
|
<ft-ripple ?disabled=${!this.interactionsOnIcon}></ft-ripple>
|
|
1597
1605
|
<ft-icon variant="material">${this.internalIcon}</ft-icon>
|
|
1598
1606
|
</div>
|
|
1599
|
-
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new qo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new qo))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Jo.elementDefinitions={"ft-ripple":vi,"ft-typography":ti,"ft-icon":Li},Jo.styles=Wo,Vo([o({type:Boolean})],Jo.prototype,"highlighted",void 0),Vo([o({type:Boolean})],Jo.prototype,"removable",void 0),Vo([o({type:Boolean})],Jo.prototype,"disabled",void 0),Vo([o({type:Boolean})],Jo.prototype,"clickable",void 0),Vo([o({type:Boolean})],Jo.prototype,"iconClickable",void 0),Vo([o({type:Boolean})],Jo.prototype,"dense",void 0),Vo([o({type:Boolean})],Jo.prototype,"multiLine",void 0),Vo([o({type:String})],Jo.prototype,"label",void 0),Vo([o({type:String})],Jo.prototype,"icon",void 0),Vo([o({type:Boolean})],Jo.prototype,"trailingIcon",void 0),Vo([n("ft-typography slot")],Jo.prototype,"slottedContent",void 0),h("ft-chip")(Jo);const Xo={fontSize:xt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:xt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:xt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:xt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:xt.extend("--ft-input-label-border-color",mt.colorOutline),textColor:xt.extend("--ft-input-label-text-color",mt.colorOnSurfaceMedium),disabledTextColor:xt.extend("--ft-input-label-disabled-text-color",mt.colorOnSurfaceDisabled),colorSurface:xt.external(mt.colorSurface,"Design system"),borderRadiusS:xt.external(mt.borderRadiusS,"Design system"),colorError:xt.external(mt.colorError,"Design system")},Yo=y`
|
|
1607
|
+
`}onKeyUp(t){this.interactionsOnChip&&["Enter"," "].includes(t.key)&&t.target.click()}onIconKeyUp(t){this.interactionsOnIcon&&["Enter"," "].includes(t.key)&&(t.stopPropagation(),this.dispatchEvent(new qo))}onIconClick(t){this.interactionsOnIcon&&(t.stopPropagation(),this.dispatchEvent(new qo))}getLabel(){return this.label||this.textContent}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:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"cancel":void 0)}}Jo.elementDefinitions={"ft-ripple":vi,"ft-typography":ti,"ft-icon":Li},Jo.styles=Wo,Vo([o({type:Boolean})],Jo.prototype,"highlighted",void 0),Vo([o({type:Boolean})],Jo.prototype,"removable",void 0),Vo([o({type:Boolean})],Jo.prototype,"disabled",void 0),Vo([o({type:Boolean})],Jo.prototype,"clickable",void 0),Vo([o({type:Boolean})],Jo.prototype,"iconClickable",void 0),Vo([o({type:Boolean})],Jo.prototype,"dense",void 0),Vo([o({type:Boolean})],Jo.prototype,"multiLine",void 0),Vo([o({type:String})],Jo.prototype,"label",void 0),Vo([o({type:String})],Jo.prototype,"icon",void 0),Vo([o({type:Boolean})],Jo.prototype,"trailingIcon",void 0),Vo([n("ft-typography slot")],Jo.prototype,"slottedContent",void 0),h("ft-chip")(Jo);const Xo={fontSize:xt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:xt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:xt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:xt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:xt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:xt.extend("--ft-input-label-border-color",mt.colorOutline),textColor:xt.extend("--ft-input-label-text-color",mt.colorOnSurfaceMedium),disabledTextColor:xt.extend("--ft-input-label-disabled-text-color",mt.colorOnSurfaceDisabled),colorSurface:xt.external(mt.colorSurface,"Design system"),borderRadiusS:xt.external(mt.borderRadiusS,"Design system"),colorError:xt.external(mt.colorError,"Design system")},Yo=y`
|
|
1600
1608
|
.ft-input-label {
|
|
1601
1609
|
position: absolute;
|
|
1602
1610
|
inset: 0;
|
|
@@ -1627,7 +1635,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1627
1635
|
}
|
|
1628
1636
|
|
|
1629
1637
|
.ft-input-label:before {
|
|
1630
|
-
width: ${Xo.horizontalSpacing};
|
|
1638
|
+
width: calc(${Xo.horizontalSpacing} - 4px);
|
|
1631
1639
|
flex-shrink: 0;
|
|
1632
1640
|
}
|
|
1633
1641
|
|
|
@@ -1645,6 +1653,8 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1645
1653
|
border-color: inherit;
|
|
1646
1654
|
color: ${Xo.textColor};
|
|
1647
1655
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
1656
|
+
max-width: calc(${Xo.labelMaxWidth} - 2 * (${Xo.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
1657
|
+
text-overflow: ellipsis;
|
|
1648
1658
|
${yt(ze.fontSize,Xo.fontSize)};
|
|
1649
1659
|
${yt(ze.lineHeight,Xo.fontSize)};
|
|
1650
1660
|
}
|
|
@@ -1660,6 +1670,8 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1660
1670
|
.ft-input-label--hidden-text {
|
|
1661
1671
|
padding: 0 4px;
|
|
1662
1672
|
opacity: 0;
|
|
1673
|
+
max-width: 100%;
|
|
1674
|
+
box-sizing: border-box;
|
|
1663
1675
|
}
|
|
1664
1676
|
|
|
1665
1677
|
.ft-input-label--floating-text {
|
|
@@ -1671,6 +1683,8 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1671
1683
|
text-overflow: ellipsis;
|
|
1672
1684
|
padding: ${Xo.verticalSpacing} 4px;
|
|
1673
1685
|
margin: calc(${Xo.verticalSpacing} * -1) 0;
|
|
1686
|
+
max-width: 100%;
|
|
1687
|
+
box-sizing: border-box;
|
|
1674
1688
|
}
|
|
1675
1689
|
|
|
1676
1690
|
.ft-input-label--raised .ft-input-label--text {
|
|
@@ -1721,7 +1735,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1721
1735
|
</div>
|
|
1722
1736
|
`:null}
|
|
1723
1737
|
</div>
|
|
1724
|
-
`}}Go.elementDefinitions={},Go.styles=[qe,Yo],Qo([o({type:String})],Go.prototype,"text",void 0),Qo([o({type:Boolean})],Go.prototype,"raised",void 0),Qo([o({type:Boolean})],Go.prototype,"outlined",void 0),Qo([o({type:Boolean})],Go.prototype,"disabled",void 0),Qo([o({type:Boolean})],Go.prototype,"error",void 0),h("ft-input-label")(Go);const ts={labelSize:xt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:xt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:xt.create("--ft-select-vertical-spacing","SIZE","4px"),optionsHeight:xt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:xt.extend("--ft-select-selected-option-color",mt.colorOnSurface),helperColor:xt.extend("--ft-select-helper-color",mt.colorOnSurfaceMedium),optionsColor:xt.extend("--ft-select-options-color",mt.colorOnSurface),optionsZIndex:xt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:xt.external(mt.colorSurface,"Design system"),colorOnSurfaceDisabled:xt.external(mt.colorOnSurfaceDisabled,"Design system"),colorPrimary:xt.external(mt.colorPrimary,"Design system"),borderRadiusS:xt.external(mt.borderRadiusS,"Design system"),elevation02:xt.external(mt.elevation02,"Design system"),colorError:xt.external(mt.colorError,"Design system")},es=y`
|
|
1738
|
+
`}}Go.elementDefinitions={},Go.styles=[qe,Yo],Qo([o({type:String})],Go.prototype,"text",void 0),Qo([o({type:Boolean})],Go.prototype,"raised",void 0),Qo([o({type:Boolean})],Go.prototype,"outlined",void 0),Qo([o({type:Boolean})],Go.prototype,"disabled",void 0),Qo([o({type:Boolean})],Go.prototype,"error",void 0),h("ft-input-label")(Go);const ts={labelSize:xt.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:xt.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:xt.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:xt.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:xt.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:xt.extend("--ft-select-selected-option-color",mt.colorOnSurface),helperColor:xt.extend("--ft-select-helper-color",mt.colorOnSurfaceMedium),optionsColor:xt.extend("--ft-select-options-color",mt.colorOnSurface),optionsZIndex:xt.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:xt.external(mt.colorSurface,"Design system"),colorOnSurfaceDisabled:xt.external(mt.colorOnSurfaceDisabled,"Design system"),colorPrimary:xt.external(mt.colorPrimary,"Design system"),borderRadiusS:xt.external(mt.borderRadiusS,"Design system"),elevation02:xt.external(mt.elevation02,"Design system"),colorError:xt.external(mt.colorError,"Design system")},es=y`
|
|
1725
1739
|
*:focus {
|
|
1726
1740
|
outline: none;
|
|
1727
1741
|
}
|
|
@@ -1744,8 +1758,8 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1744
1758
|
display: flex;
|
|
1745
1759
|
align-items: center;
|
|
1746
1760
|
overflow: hidden;
|
|
1747
|
-
padding-left:
|
|
1748
|
-
padding-right:
|
|
1761
|
+
padding-left: ${ts.horizontalSpacing};
|
|
1762
|
+
padding-right: ${ts.horizontalSpacing};
|
|
1749
1763
|
gap: 8px;
|
|
1750
1764
|
color: ${ts.selectedOptionColor};
|
|
1751
1765
|
${yt(li.color,ts.selectedOptionColor)};
|
|
@@ -1776,6 +1790,8 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1776
1790
|
${yt(Xo.fontSize,ts.selectedOptionSize)};
|
|
1777
1791
|
${yt(Xo.raisedFontSize,ts.labelSize)};
|
|
1778
1792
|
${yt(Xo.verticalSpacing,ts.verticalSpacing)};
|
|
1793
|
+
${yt(Xo.horizontalSpacing,ts.horizontalSpacing)};
|
|
1794
|
+
${yt(Xo.labelMaxWidth,`calc(100% - ${Mi.size} - 8px)`)};
|
|
1779
1795
|
}
|
|
1780
1796
|
|
|
1781
1797
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -1849,7 +1865,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1849
1865
|
|
|
1850
1866
|
.ft-select--option {
|
|
1851
1867
|
position: relative;
|
|
1852
|
-
padding: 4px
|
|
1868
|
+
padding: 4px ${ts.horizontalSpacing};
|
|
1853
1869
|
min-height: 32px;
|
|
1854
1870
|
display: flex;
|
|
1855
1871
|
align-items: center;
|
|
@@ -1861,7 +1877,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1861
1877
|
}
|
|
1862
1878
|
|
|
1863
1879
|
.ft-select--helper-text {
|
|
1864
|
-
padding: 0
|
|
1880
|
+
padding: 0 ${ts.horizontalSpacing};
|
|
1865
1881
|
color: ${ts.helperColor};
|
|
1866
1882
|
}
|
|
1867
1883
|
|
|
@@ -1943,7 +1959,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
1943
1959
|
background-position: calc(100vw + ${rs.glareWidth}) 0, calc(${rs.glareWidth} * -1) 0;
|
|
1944
1960
|
}
|
|
1945
1961
|
}
|
|
1946
|
-
`,ls={height:xt.create("--ft-search-bar-height","SIZE","38px"),borderRadius:xt.extend("--ft-search-bar-border-radius",mt.borderRadiusS),mobileOpenPosition:xt.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:xt.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:xt.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:xt.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:xt.create("--ft-search-bar-mobile-open-right","SIZE","0"),desktopFiltersHeight:xt.create("--ft-search-bar-desktop-filters-height","SIZE","350px"),floatingZIndex:xt.create("--ft-search-bar-floating-components-z-index","NUMBER","3"),colorSurface:xt.external(mt.colorSurface,"Design system"),colorOnSurface:xt.external(mt.colorOnSurface,"Design system"),colorOnSurfaceMedium:xt.external(mt.colorOnSurfaceMedium,"Design system"),colorOutline:xt.external(mt.colorOutline,"Design system"),colorPrimary:xt.external(mt.colorPrimary,"Design system"),elevation02:xt.external(mt.elevation02,"Design system"),buttonColor:xt.external(
|
|
1962
|
+
`,ls={height:xt.create("--ft-search-bar-height","SIZE","38px"),borderRadius:xt.extend("--ft-search-bar-border-radius",mt.borderRadiusS),mobileOpenPosition:xt.create("--ft-search-bar-mobile-open-position","POSITION","fixed"),mobileOpenTop:xt.create("--ft-search-bar-mobile-open-top","SIZE","0"),mobileOpenBottom:xt.create("--ft-search-bar-mobile-open-bottom","SIZE","0"),mobileOpenLeft:xt.create("--ft-search-bar-mobile-open-left","SIZE","0"),mobileOpenRight:xt.create("--ft-search-bar-mobile-open-right","SIZE","0"),desktopFiltersHeight:xt.create("--ft-search-bar-desktop-filters-height","SIZE","350px"),floatingZIndex:xt.create("--ft-search-bar-floating-components-z-index","NUMBER","3"),colorSurface:xt.external(mt.colorSurface,"Design system"),colorOnSurface:xt.external(mt.colorOnSurface,"Design system"),colorOnSurfaceMedium:xt.external(mt.colorOnSurfaceMedium,"Design system"),colorOutline:xt.external(mt.colorOutline,"Design system"),colorPrimary:xt.external(mt.colorPrimary,"Design system"),elevation02:xt.external(mt.elevation02,"Design system"),buttonColor:xt.external(Di.color,"Button"),buttonRippleColor:xt.external(Di.rippleColor,"Button")},as=y`
|
|
1947
1963
|
* {
|
|
1948
1964
|
box-sizing: border-box;
|
|
1949
1965
|
}
|
|
@@ -2052,11 +2068,11 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
2052
2068
|
.ft-search-bar > ft-button,
|
|
2053
2069
|
.ft-search-bar--actions ft-button {
|
|
2054
2070
|
flex-shrink: 0;
|
|
2055
|
-
${yt(
|
|
2071
|
+
${yt(Di.backgroundColor,"transparent")};
|
|
2056
2072
|
}
|
|
2057
2073
|
|
|
2058
2074
|
.ft-search-bar--left-action {
|
|
2059
|
-
${yt(
|
|
2075
|
+
${yt(Di.borderRadius,`calc(${ls.borderRadius} - 1px) 0 0 calc(${ls.borderRadius} - 1px)`)};
|
|
2060
2076
|
border-right: 1px solid ${ls.colorOutline};
|
|
2061
2077
|
height: 100%;
|
|
2062
2078
|
}
|
|
@@ -2066,7 +2082,7 @@ class Si extends Rt{constructor(t){if(super(t),this.it=Q,t.type!==Nt)throw Error
|
|
|
2066
2082
|
}
|
|
2067
2083
|
|
|
2068
2084
|
.ft-search-bar--floating-panel-open .ft-search-bar--left-action {
|
|
2069
|
-
${yt(
|
|
2085
|
+
${yt(Di.borderRadius,`calc(${ls.borderRadius} - 1px) 0 0 0`)};
|
|
2070
2086
|
}
|
|
2071
2087
|
|
|
2072
2088
|
.ft-search-bar .ft-search-bar--launch-search,
|
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.50",
|
|
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.50",
|
|
23
|
+
"@fluid-topics/ft-button": "0.3.50",
|
|
24
|
+
"@fluid-topics/ft-chip": "0.3.50",
|
|
25
|
+
"@fluid-topics/ft-filter": "0.3.50",
|
|
26
|
+
"@fluid-topics/ft-icon": "0.3.50",
|
|
27
|
+
"@fluid-topics/ft-select": "0.3.50",
|
|
28
|
+
"@fluid-topics/ft-size-watcher": "0.3.50",
|
|
29
|
+
"@fluid-topics/ft-skeleton": "0.3.50",
|
|
30
|
+
"@fluid-topics/ft-snap-scroll": "0.3.50",
|
|
31
|
+
"@fluid-topics/ft-tooltip": "0.3.50",
|
|
32
|
+
"@fluid-topics/ft-typography": "0.3.50",
|
|
33
|
+
"@fluid-topics/ft-wc-utils": "0.3.50",
|
|
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.28"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ed73266ceb5360df2eefd4cbb314c1b9b2e811dc"
|
|
43
43
|
}
|