@fluid-topics/ft-select 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-select.d.ts +9 -1
- package/build/ft-select.inline-styles.js +204 -162
- package/build/ft-select.js +50 -3
- package/build/ft-select.light.js +106 -64
- package/build/ft-select.min.js +202 -160
- package/package.json +7 -7
package/build/ft-select.light.js
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var r;const p=globalThis.trustedTypes,a=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,h="?"+f,
|
|
7
|
+
var r;const p=globalThis.trustedTypes,a=p?p.createPolicy("lit-html",{createHTML:t=>t}):void 0,f=`lit$${(Math.random()+"").slice(9)}$`,h="?"+f,c=`<${h}>`,d=document,u=(t="")=>d.createComment(t),x=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,g=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b=/-->/g,v=/>/g,m=/>|[ \n\r](?:([^\s"'>=/]+)([ \n\r]*=[ \n\r]*(?:[^ \n\r"'`<>=]|("|')|))|$)/g,$=/'/g,w=/"/g,k=/^(?:script|style|textarea|title)$/i,z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),S=Symbol.for("lit-noChange"),O=Symbol.for("lit-nothing"),E=new WeakMap,C=d.createTreeWalker(d,129,null,!1),A=(t,e)=>{const i=t.length-1,o=[];let s,l=2===e?"<svg>":"",n=g;for(let e=0;e<i;e++){const i=t[e];let r,p,a=-1,h=0;for(;h<i.length&&(n.lastIndex=h,p=n.exec(i),null!==p);)h=n.lastIndex,n===g?"!--"===p[1]?n=b:void 0!==p[1]?n=v:void 0!==p[2]?(k.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=m):void 0!==p[3]&&(n=m):n===m?">"===p[0]?(n=null!=s?s:g,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,r=p[1],n=void 0===p[3]?m:'"'===p[3]?w:$):n===w||n===$?n=m:n===b||n===v?n=g:(n=m,s=void 0);const d=n===m&&t[e+1].startsWith("/>")?" ":"";l+=n===g?i+c:a>=0?(o.push(r),i.slice(0,a)+"$lit$"+i.slice(a)+f+d):i+f+(-2===a?(o.push(void 0),e):d)}const r=l+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==a?a.createHTML(r):r,o]};class j{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,l=0;const n=t.length-1,r=this.parts,[a,c]=A(t,e);if(this.el=j.createElement(a,i),C.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=C.nextNode())&&r.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(f)){const i=c[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(f),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?_:"?"===e[1]?Z:"@"===e[1]?T:M})}else r.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(k.test(o.tagName)){const t=o.textContent.split(f),e=t.length-1;if(e>0){o.textContent=p?p.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],u()),C.nextNode(),r.push({type:2,index:++s});o.append(t[e],u())}}}else if(8===o.nodeType)if(o.data===h)r.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(f,t+1));)r.push({type:7,index:s}),t+=f.length-1}s++}}static createElement(t,e){const i=d.createElement("template");return i.innerHTML=t,i}}function N(t,e,i=t,o){var s,l,n,r;if(e===S)return e;let p=void 0!==o?null===(s=i._$Cl)||void 0===s?void 0:s[o]:i._$Cu;const a=x(e)?void 0:e._$litDirective$;return(null==p?void 0:p.constructor)!==a&&(null===(l=null==p?void 0:p._$AO)||void 0===l||l.call(p,!1),void 0===a?p=void 0:(p=new a(t),p._$AT(t,i,o)),void 0!==o?(null!==(n=(r=i)._$Cl)&&void 0!==n?n:r._$Cl=[])[o]=p:i._$Cu=p),void 0!==p&&(e=N(t,p._$AS(t,e.values),p,o)),e}class D{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:d).importNode(i,!0);C.currentNode=s;let l=C.nextNode(),n=0,r=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new I(l,l.nextSibling,this,t):1===p.type?e=new p.ctor(l,p.name,p.strings,this,t):6===p.type&&(e=new U(l,this,t)),this.v.push(e),p=o[++r]}n!==(null==p?void 0:p.index)&&(l=C.nextNode(),n++)}return s}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class I{constructor(t,e,i,o){var s;this.type=2,this._$AH=O,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cg=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._$Cg}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=N(this,t,e),x(t)?t===O||null==t||""===t?(this._$AH!==O&&this._$AR(),this._$AH=O):t!==this._$AH&&t!==S&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.S(t):(t=>{var e;return y(t)||"function"==typeof(null===(e=t)||void 0===e?void 0:e[Symbol.iterator])})(t)?this.A(t):this.$(t)}M(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}S(t){this._$AH!==t&&(this._$AR(),this._$AH=this.M(t))}$(t){this._$AH!==O&&x(this._$AH)?this._$AA.nextSibling.data=t:this.S(d.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=j.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.m(i);else{const t=new D(s,this),e=t.p(this.options);t.m(i),this.S(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new j(t)),e}A(t){y(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 I(this.M(u()),this.M(u()),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._$Cg=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class M{constructor(t,e,i,o,s){this.type=1,this._$AH=O,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=O}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let l=!1;if(void 0===s)t=N(this,t,e,0),l=!x(t)||t!==this._$AH&&t!==S,l&&(this._$AH=t);else{const o=t;let n,r;for(t=s[0],n=0;n<s.length-1;n++)r=N(this,o[i+n],e,n),r===S&&(r=this._$AH[n]),l||(l=!x(r)||r!==this._$AH[n]),r===O?t=O:t!==O&&(t+=(null!=r?r:"")+s[n+1]),this._$AH[n]=r}l&&!o&&this.k(t)}k(t){t===O?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class _ extends M{constructor(){super(...arguments),this.type=3}k(t){this.element[this.name]=t===O?void 0:t}}const B=p?p.emptyScript:"";class Z extends M{constructor(){super(...arguments),this.type=4}k(t){t&&t!==O?this.element.setAttribute(this.name,B):this.element.removeAttribute(this.name)}}class T extends M{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=N(this,t,e,0))&&void 0!==i?i:O)===S)return;const o=this._$AH,s=t===O&&o!==O||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==O&&(o===O||s);s&&this.element.removeEventListener(this.name,this,o),l&&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 U{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){N(this,t)}}const R=window.litHtmlPolyfillSupport;null==R||R(j,I),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.1.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;let l,n;const r=[],p=[];let a,f=0,h=!1;for(;f<s;){for(a=e[f];f<s&&void 0!==(n=i[f],l=null===(o=n)||void 0===o?void 0:o._$litStatic$);)a+=l+e[++f],h=!0;p.push(n),r.push(a),f++}if(f===s&&r.push(e[s]),h){const t=r.join("$$lit$$");void 0===(e=K.get(t))&&(r.raw=r,K.set(t,e=r)),i=p}return t(e,...i)})(z);var G,H=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};!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"}(G||(G={}));const P=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),L={fontFamily:q,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariable.extend("--ft-typography-title-font-family",P),Y=e.FtCssVariable.extend("--ft-typography-title-font-size",L.fontSize,"20px"),J=e.FtCssVariable.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Q=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),V=e.FtCssVariable.extend("--ft-typography-title-line-height",L.lineHeight,"24px"),tt=e.FtCssVariable.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",P),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),st=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",L.lineHeight,"24px"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),rt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",q),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),
|
|
13
|
+
const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;let l,n;const r=[],p=[];let a,f=0,h=!1;for(;f<s;){for(a=e[f];f<s&&void 0!==(n=i[f],l=null===(o=n)||void 0===o?void 0:o._$litStatic$);)a+=l+e[++f],h=!0;p.push(n),r.push(a),f++}if(f===s&&r.push(e[s]),h){const t=r.join("$$lit$$");void 0===(e=K.get(t))&&(r.raw=r,K.set(t,e=r)),i=p}return t(e,...i)})(z);var G,H=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};!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"}(G||(G={}));const P=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),q=e.FtCssVariable.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),L={fontFamily:q,fontSize:e.FtCssVariable.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariable.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariable.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariable.create("--ft-typography-line-height","SIZE","24px"),textTransform:e.FtCssVariable.create("--ft-typography-text-transform","UNKNOWN","inherit")},X=e.FtCssVariable.extend("--ft-typography-title-font-family",P),Y=e.FtCssVariable.extend("--ft-typography-title-font-size",L.fontSize,"20px"),J=e.FtCssVariable.extend("--ft-typography-title-font-weight",L.fontWeight,"normal"),Q=e.FtCssVariable.extend("--ft-typography-title-letter-spacing",L.letterSpacing,"0.15px"),V=e.FtCssVariable.extend("--ft-typography-title-line-height",L.lineHeight,"24px"),tt=e.FtCssVariable.extend("--ft-typography-title-text-transform",L.textTransform,"inherit"),et=e.FtCssVariable.extend("--ft-typography-title-dense-font-family",P),it=e.FtCssVariable.extend("--ft-typography-title-dense-font-size",L.fontSize,"14px"),ot=e.FtCssVariable.extend("--ft-typography-title-dense-font-weight",L.fontWeight,"normal"),st=e.FtCssVariable.extend("--ft-typography-title-dense-letter-spacing",L.letterSpacing,"0.105px"),lt=e.FtCssVariable.extend("--ft-typography-title-dense-line-height",L.lineHeight,"24px"),nt=e.FtCssVariable.extend("--ft-typography-title-dense-text-transform",L.textTransform,"inherit"),rt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-family",q),pt=e.FtCssVariable.extend("--ft-typography-subtitle1-font-size",L.fontSize,"16px"),at=e.FtCssVariable.extend("--ft-typography-subtitle1-font-weight",L.fontWeight,"600"),ft=e.FtCssVariable.extend("--ft-typography-subtitle1-letter-spacing",L.letterSpacing,"0.144px"),ht=e.FtCssVariable.extend("--ft-typography-subtitle1-line-height",L.lineHeight,"24px"),ct=e.FtCssVariable.extend("--ft-typography-subtitle1-text-transform",L.textTransform,"inherit"),dt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-family",q),ut=e.FtCssVariable.extend("--ft-typography-subtitle2-font-size",L.fontSize,"14px"),xt=e.FtCssVariable.extend("--ft-typography-subtitle2-font-weight",L.fontWeight,"normal"),yt=e.FtCssVariable.extend("--ft-typography-subtitle2-letter-spacing",L.letterSpacing,"0.098px"),gt=e.FtCssVariable.extend("--ft-typography-subtitle2-line-height",L.lineHeight,"24px"),bt=e.FtCssVariable.extend("--ft-typography-subtitle2-text-transform",L.textTransform,"inherit"),vt={fontFamily:e.FtCssVariable.extend("--ft-typography-body1-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-body1-font-size",L.fontSize,"16px"),fontWeight:e.FtCssVariable.extend("--ft-typography-body1-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-body1-letter-spacing",L.letterSpacing,"0.496px"),lineHeight:e.FtCssVariable.extend("--ft-typography-body1-line-height",L.lineHeight,"24px"),textTransform:e.FtCssVariable.extend("--ft-typography-body1-text-transform",L.textTransform,"inherit")},mt=e.FtCssVariable.extend("--ft-typography-body2-font-family",q),$t=e.FtCssVariable.extend("--ft-typography-body2-font-size",L.fontSize,"14px"),wt=e.FtCssVariable.extend("--ft-typography-body2-font-weight",L.fontWeight,"normal"),kt=e.FtCssVariable.extend("--ft-typography-body2-letter-spacing",L.letterSpacing,"0.252px"),zt=e.FtCssVariable.extend("--ft-typography-body2-line-height",L.lineHeight,"20px"),St=e.FtCssVariable.extend("--ft-typography-body2-text-transform",L.textTransform,"inherit"),Ot={fontFamily:e.FtCssVariable.extend("--ft-typography-caption-font-family",q),fontSize:e.FtCssVariable.extend("--ft-typography-caption-font-size",L.fontSize,"12px"),fontWeight:e.FtCssVariable.extend("--ft-typography-caption-font-weight",L.fontWeight,"normal"),letterSpacing:e.FtCssVariable.extend("--ft-typography-caption-letter-spacing",L.letterSpacing,"0.396px"),lineHeight:e.FtCssVariable.extend("--ft-typography-caption-line-height",L.lineHeight,"16px"),textTransform:e.FtCssVariable.extend("--ft-typography-caption-text-transform",L.textTransform,"inherit")},Et=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-family",q),Ct=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-size",L.fontSize,"10px"),At=e.FtCssVariable.extend("--ft-typography-breadcrumb-font-weight",L.fontWeight,"normal"),jt=e.FtCssVariable.extend("--ft-typography-breadcrumb-letter-spacing",L.letterSpacing,"0.33px"),Nt=e.FtCssVariable.extend("--ft-typography-breadcrumb-line-height",L.lineHeight,"16px"),Dt=e.FtCssVariable.extend("--ft-typography-breadcrumb-text-transform",L.textTransform,"inherit"),It=e.FtCssVariable.extend("--ft-typography-overline-font-family",q),Mt=e.FtCssVariable.extend("--ft-typography-overline-font-size",L.fontSize,"10px"),_t=e.FtCssVariable.extend("--ft-typography-overline-font-weight",L.fontWeight,"normal"),Bt=e.FtCssVariable.extend("--ft-typography-overline-letter-spacing",L.letterSpacing,"1.5px"),Zt=e.FtCssVariable.extend("--ft-typography-overline-line-height",L.lineHeight,"16px"),Tt=e.FtCssVariable.extend("--ft-typography-overline-text-transform",L.textTransform,"uppercase"),Ut=e.FtCssVariable.extend("--ft-typography-button-font-family",q),Rt=e.FtCssVariable.extend("--ft-typography-button-font-size",L.fontSize,"14px"),Wt=e.FtCssVariable.extend("--ft-typography-button-font-weight",L.fontWeight,"600"),Kt=e.FtCssVariable.extend("--ft-typography-button-letter-spacing",L.letterSpacing,"1.246px"),Ft=e.FtCssVariable.extend("--ft-typography-button-line-height",L.lineHeight,"16px"),Gt=e.FtCssVariable.extend("--ft-typography-button-text-transform",L.textTransform,"uppercase"),Ht=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${X};
|
|
16
16
|
font-size: ${Y};
|
|
@@ -35,26 +35,26 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
35
35
|
font-weight: ${at};
|
|
36
36
|
letter-spacing: ${ft};
|
|
37
37
|
line-height: ${ht};
|
|
38
|
-
text-transform: ${
|
|
38
|
+
text-transform: ${ct};
|
|
39
39
|
}
|
|
40
40
|
`,Lt=i.css`
|
|
41
41
|
.ft-typography--subtitle2 {
|
|
42
|
-
font-family: ${
|
|
42
|
+
font-family: ${dt};
|
|
43
43
|
font-size: ${ut};
|
|
44
44
|
font-weight: ${xt};
|
|
45
45
|
letter-spacing: ${yt};
|
|
46
46
|
line-height: ${gt};
|
|
47
|
-
text-transform: ${
|
|
47
|
+
text-transform: ${bt};
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
`,Xt=i.css`
|
|
51
51
|
.ft-typography--body1 {
|
|
52
|
-
font-family: ${
|
|
53
|
-
font-size: ${
|
|
54
|
-
font-weight: ${
|
|
55
|
-
letter-spacing: ${
|
|
56
|
-
line-height: ${
|
|
57
|
-
text-transform: ${
|
|
52
|
+
font-family: ${vt.fontFamily};
|
|
53
|
+
font-size: ${vt.fontSize};
|
|
54
|
+
font-weight: ${vt.fontWeight};
|
|
55
|
+
letter-spacing: ${vt.letterSpacing};
|
|
56
|
+
line-height: ${vt.lineHeight};
|
|
57
|
+
text-transform: ${vt.textTransform};
|
|
58
58
|
}
|
|
59
59
|
`,Yt=i.css`
|
|
60
60
|
.ft-typography--body2 {
|
|
@@ -76,20 +76,20 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
76
76
|
}
|
|
77
77
|
`,Qt=i.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
79
|
+
font-family: ${Et};
|
|
80
|
+
font-size: ${Ct};
|
|
81
81
|
font-weight: ${At};
|
|
82
82
|
letter-spacing: ${jt};
|
|
83
83
|
line-height: ${Nt};
|
|
84
|
-
text-transform: ${
|
|
84
|
+
text-transform: ${Dt};
|
|
85
85
|
}
|
|
86
86
|
`,Vt=i.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
89
|
-
font-size: ${
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
88
|
+
font-family: ${It};
|
|
89
|
+
font-size: ${Mt};
|
|
90
|
+
font-weight: ${_t};
|
|
91
|
+
letter-spacing: ${Bt};
|
|
92
|
+
line-height: ${Zt};
|
|
93
93
|
text-transform: ${Tt};
|
|
94
94
|
}
|
|
95
95
|
`,te=i.css`
|
|
@@ -112,7 +112,7 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],H([o.property()],ee.prototype,"element",void 0),H([o.property()],ee.prototype,"variant",void 0),e.customElement("ft-typography")(ee);var ie=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};const oe={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system")};class se extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled};return i.html`
|
|
115
|
+
`],H([o.property()],ee.prototype,"element",void 0),H([o.property()],ee.prototype,"variant",void 0),e.customElement("ft-typography")(ee);var ie=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};const oe={fontSize:e.FtCssVariable.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:e.FtCssVariable.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:e.FtCssVariable.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:e.FtCssVariable.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariable.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:e.FtCssVariable.extend("--ft-input-label-border-color",e.designSystemVariables.colorOutline),textColor:e.FtCssVariable.extend("--ft-input-label-text-color",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariable.extend("--ft-input-label-disabled-text-color",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class se extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return i.html`
|
|
116
116
|
<div class="${s.classMap(t)}">
|
|
117
117
|
${this.text?i.html`
|
|
118
118
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -132,6 +132,10 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
132
132
|
border-color: ${oe.borderColor};
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
.ft-input-label.ft-input-label--in-error {
|
|
136
|
+
border-color: ${oe.colorError}
|
|
137
|
+
}
|
|
138
|
+
|
|
135
139
|
.ft-input-label:before,
|
|
136
140
|
.ft-input-label:after {
|
|
137
141
|
content: "";
|
|
@@ -164,6 +168,10 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
164
168
|
${e.setVariable(Ot.lineHeight,oe.fontSize)};
|
|
165
169
|
}
|
|
166
170
|
|
|
171
|
+
.ft-input-label--in-error .ft-input-label--text {
|
|
172
|
+
color: ${oe.colorError}
|
|
173
|
+
}
|
|
174
|
+
|
|
167
175
|
.ft-input-label--disabled .ft-input-label--text {
|
|
168
176
|
color: ${oe.disabledTextColor};
|
|
169
177
|
}
|
|
@@ -224,7 +232,7 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
224
232
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
225
233
|
border-top: none;
|
|
226
234
|
}
|
|
227
|
-
`],ie([o.property({type:String})],se.prototype,"text",void 0),ie([o.property({type:Boolean})],se.prototype,"raised",void 0),ie([o.property({type:Boolean})],se.prototype,"outlined",void 0),ie([o.property({type:Boolean})],se.prototype,"disabled",void 0),e.customElement("ft-input-label")(se);var le=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};const ne=
|
|
235
|
+
`],ie([o.property({type:String})],se.prototype,"text",void 0),ie([o.property({type:Boolean})],se.prototype,"raised",void 0),ie([o.property({type:Boolean})],se.prototype,"outlined",void 0),ie([o.property({type:Boolean})],se.prototype,"disabled",void 0),ie([o.property({type:Boolean})],se.prototype,"error",void 0),e.customElement("ft-input-label")(se);var le=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};const ne=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorContent),re={color:ne,backgroundColor:e.FtCssVariable.extend("--ft-ripple-background-color",ne),opacityContentOnSurfacePressed:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariable.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system")},pe=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ae=pe,fe=e.FtCssVariable.extend("--ft-ripple-background-color",pe),he=e.FtCssVariable.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),ce=he,de=e.FtCssVariable.extend("--ft-ripple-background-color",he);class ue extends e.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.rippleSize=0,this.originX=0,this.originY=0,this.resizeObserver=new ResizeObserver((()=>this.setRippleSize())),this.debouncer=new e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),l=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-l.x:l.width/2),this.originY=Math.round(null!=s?s-l.y:l.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return i.html`
|
|
228
236
|
<style>
|
|
229
237
|
.ft-ripple .ft-ripple--effect,
|
|
230
238
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -241,7 +249,7 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
241
249
|
<div class="ft-ripple--background"></div>
|
|
242
250
|
<div class="ft-ripple--effect"></div>
|
|
243
251
|
</div>
|
|
244
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){super.updated(t),t.has("disabled")&&this.disabled
|
|
252
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var e,i;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(i=this.target)||void 0===i||i.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){var t;super.connectedCallback();const e=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;e&&this.setupFor(e),this.setRippleSize()}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},i=e("mouseup","contextmenu"),o=e("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",i),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",i),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0}}getCoordinates(t){const e=t,i=t;let o,s;return null!=e.x?({x:o,y:s}=e):null!=i.touches&&(o=i.touches[0].clientX,s=i.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}var xe,ye;ue.elementDefinitions={},ue.styles=i.css`
|
|
245
253
|
:host {
|
|
246
254
|
display: contents;
|
|
247
255
|
}
|
|
@@ -260,17 +268,30 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
260
268
|
.ft-ripple .ft-ripple--effect {
|
|
261
269
|
position: absolute;
|
|
262
270
|
opacity: 0;
|
|
263
|
-
background-color: ${ne.color};
|
|
264
271
|
}
|
|
265
272
|
|
|
266
|
-
.ft-ripple
|
|
273
|
+
.ft-ripple .ft-ripple--background {
|
|
274
|
+
background-color: ${re.backgroundColor};
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
.ft-ripple .ft-ripple--effect {
|
|
278
|
+
background-color: ${re.color};
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
282
|
+
background-color: ${de};
|
|
283
|
+
}
|
|
284
|
+
|
|
267
285
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
268
|
-
background-color: ${
|
|
286
|
+
background-color: ${ce};
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
290
|
+
background-color: ${fe};
|
|
269
291
|
}
|
|
270
292
|
|
|
271
|
-
.ft-ripple.ft-ripple--primary .ft-ripple--background,
|
|
272
293
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
273
|
-
background-color: ${
|
|
294
|
+
background-color: ${ae};
|
|
274
295
|
}
|
|
275
296
|
|
|
276
297
|
.ft-ripple .ft-ripple--background {
|
|
@@ -278,6 +299,7 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
278
299
|
left: 0;
|
|
279
300
|
height: 100%;
|
|
280
301
|
width: 100%;
|
|
302
|
+
transition: opacity 75ms linear;
|
|
281
303
|
}
|
|
282
304
|
|
|
283
305
|
.ft-ripple .ft-ripple--effect,
|
|
@@ -301,36 +323,36 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
301
323
|
}
|
|
302
324
|
|
|
303
325
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
304
|
-
opacity: ${
|
|
326
|
+
opacity: ${re.opacityContentOnSurfaceHover};
|
|
305
327
|
}
|
|
306
328
|
|
|
307
329
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
308
|
-
opacity: ${
|
|
330
|
+
opacity: ${re.opacityContentOnSurfaceSelected};
|
|
309
331
|
}
|
|
310
332
|
|
|
311
333
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
312
|
-
opacity: ${
|
|
334
|
+
opacity: ${re.opacityContentOnSurfaceFocused};
|
|
313
335
|
}
|
|
314
336
|
|
|
315
337
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
316
|
-
opacity: ${
|
|
338
|
+
opacity: ${re.opacityContentOnSurfacePressed};
|
|
317
339
|
transform: translate(-50%, -50%) scale(1);
|
|
318
340
|
}
|
|
319
|
-
`,le([o.property({type:Boolean})],
|
|
341
|
+
`,le([o.property({type:Boolean})],ue.prototype,"primary",void 0),le([o.property({type:Boolean})],ue.prototype,"secondary",void 0),le([o.property({type:Boolean})],ue.prototype,"unbounded",void 0),le([o.property({type:Boolean})],ue.prototype,"activated",void 0),le([o.property({type:Boolean})],ue.prototype,"selected",void 0),le([o.property({type:Boolean})],ue.prototype,"disabled",void 0),le([o.state()],ue.prototype,"hovered",void 0),le([o.state()],ue.prototype,"focused",void 0),le([o.state()],ue.prototype,"pressed",void 0),le([o.state()],ue.prototype,"rippling",void 0),le([o.state()],ue.prototype,"rippleSize",void 0),le([o.state()],ue.prototype,"originX",void 0),le([o.state()],ue.prototype,"originY",void 0),le([o.query(".ft-ripple")],ue.prototype,"ripple",void 0),le([o.query(".ft-ripple--effect")],ue.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ue),function(t){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.STAR_PLAIN="",t.STAR="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_DOWN="",t.THUMBS_UP_PLAIN="",t.THUMBS_UP="",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="\f06e",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=""}(xe||(xe={})),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=""}(ye||(ye={})),new Map([...["abw"].map((t=>[t,ye.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,ye.AUDIO])),...["avi"].map((t=>[t,ye.AVI])),...["chm","xhs"].map((t=>[t,ye.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,ye.CODE])),...["csv"].map((t=>[t,ye.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,ye.DITA])),...["epub"].map((t=>[t,ye.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,ye.EXCEL])),...["flac"].map((t=>[t,ye.FLAC])),...["gif"].map((t=>[t,ye.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,ye.GZIP])),...["html","htm","xhtml"].map((t=>[t,ye.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,ye.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,ye.JPEG])),...["json"].map((t=>[t,ye.JSON])),...["m4a","m4p"].map((t=>[t,ye.M4A])),...["mov","qt"].map((t=>[t,ye.MOV])),...["mp3"].map((t=>[t,ye.MP3])),...["mp4","m4v"].map((t=>[t,ye.MP4])),...["ogg","oga"].map((t=>[t,ye.OGG])),...["pdf","ps"].map((t=>[t,ye.PDF])),...["png"].map((t=>[t,ye.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,ye.POWERPOINT])),...["rar"].map((t=>[t,ye.RAR])),...["stp"].map((t=>[t,ye.STP])),...["txt","rtf","md","mdown"].map((t=>[t,ye.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,ye.VIDEO])),...["wav"].map((t=>[t,ye.WAV])),...["wma"].map((t=>[t,ye.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,ye.WORD])),...["xml","xsl","rdf"].map((t=>[t,ye.XML])),...["yaml","yml","x-yaml"].map((t=>[t,ye.YAML])),...["zip"].map((t=>[t,ye.ZIP]))]);var ge,be=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(ge||(ge={}));const ve=e.FtCssVariable.create("--ft-icon-font-size","SIZE","24px"),me=e.FtCssVariable.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-icons")),$e=e.FtCssVariable.extend("--ft-icon-file-format-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","ft-mime")),we=e.FtCssVariable.extend("--ft-icon-material-font-family",e.FtCssVariable.create("--ft-icon-font-family","UNKNOWN","Material Icons"));class ke extends e.FtLitElement{constructor(){super(...arguments),this.variant=ge.fluid_topics}render(){return i.html`
|
|
320
342
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
321
343
|
${n.unsafeHTML(this.getIcon())}
|
|
322
344
|
<slot @slotchange=${()=>this.requestUpdate()} ?hidden=${"material"!==this.variant}></slot>
|
|
323
345
|
</i>
|
|
324
|
-
`}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:""}getIcon(){var t,e;let o=this.textContent;return this.variant===
|
|
346
|
+
`}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:""}getIcon(){var t,e;let o=this.textContent;return this.variant===ge.file_format?null!==(t=ye[o.toUpperCase()])&&void 0!==t?t:o:this.variant===ge.fluid_topics?null!==(e=xe[o.toUpperCase()])&&void 0!==e?e:o:i.nothing}}ke.elementDefinitions={},ke.styles=i.css`
|
|
325
347
|
:host, i.ft-icon {
|
|
326
348
|
display: inline-block;
|
|
327
|
-
width: ${
|
|
328
|
-
height: ${
|
|
349
|
+
width: ${ve};
|
|
350
|
+
height: ${ve};
|
|
329
351
|
text-align: center;
|
|
330
352
|
}
|
|
331
353
|
|
|
332
354
|
i.ft-icon {
|
|
333
|
-
font-size: ${
|
|
355
|
+
font-size: ${ve};
|
|
334
356
|
line-height: 1;
|
|
335
357
|
font-weight: normal;
|
|
336
358
|
text-transform: none;
|
|
@@ -344,17 +366,17 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
344
366
|
}
|
|
345
367
|
|
|
346
368
|
.ft-icon--fluid-topics {
|
|
347
|
-
font-family: ${
|
|
369
|
+
font-family: ${me}, ft-icons, fticons, sans-serif;
|
|
348
370
|
}
|
|
349
371
|
|
|
350
372
|
.ft-icon--file-format {
|
|
351
|
-
font-family: ${
|
|
373
|
+
font-family: ${$e}, ft-mime, sans-serif;
|
|
352
374
|
}
|
|
353
375
|
|
|
354
376
|
.ft-icon--material {
|
|
355
|
-
font-family: ${
|
|
377
|
+
font-family: ${we}, "Material Icons", sans-serif;
|
|
356
378
|
}
|
|
357
|
-
`,
|
|
379
|
+
`,be([o.property()],ke.prototype,"variant",void 0),be([o.query("slot")],ke.prototype,"slottedContent",void 0),e.customElement("ft-icon")(ke);var ze=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class Se extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1}render(){return i.html``}updated(t){super.updated(t),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}}Se.elementDefinitions={},ze([o.property({type:String})],Se.prototype,"label",void 0),ze([o.property({type:Object,converter:t=>t})],Se.prototype,"value",void 0),ze([o.property({type:Boolean,reflect:!0})],Se.prototype,"selected",void 0);const Oe={labelSize:e.FtCssVariable.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:e.FtCssVariable.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:e.FtCssVariable.create("--ft-select-vertical-spacing","SIZE","4px"),selectedOptionColor:e.FtCssVariable.extend("--ft-select-selected-option-color",e.designSystemVariables.colorOnSurface),helperColor:e.FtCssVariable.extend("--ft-select-helper-color",e.designSystemVariables.colorOnSurfaceMedium),optionsColor:e.FtCssVariable.extend("--ft-select-options-color",e.designSystemVariables.colorOnSurface),optionsZIndex:e.FtCssVariable.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:e.FtCssVariable.external(e.designSystemVariables.colorSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariable.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:e.FtCssVariable.external(e.designSystemVariables.colorPrimary,"Design system"),borderRadiusS:e.FtCssVariable.external(e.designSystemVariables.borderRadiusS,"Design system"),elevation02:e.FtCssVariable.external(e.designSystemVariables.elevation02,"Design system"),colorError:e.FtCssVariable.external(e.designSystemVariables.colorError,"Design system")};class Ee extends e.FtLitElement{constructor(){super(...arguments),this.label="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.options=[],this.optionsDisplayed=!1,this.focusOptions=!1,this.hideOptions=t=>this.optionsDisplayed=this.optionsDisplayed&&t.composedPath().includes(this.container)}render(){var t,e,o,n,r;let p=this.hasOptionsMenuOpen,a=this.disabled||!this.hasOptions;const f=null!=(null===(t=this.selectedOption)||void 0===t?void 0:t.value)||(null!==(o=null===(e=this.selectedOption)||void 0===e?void 0:e.label)&&void 0!==o?o:"").length>0,h={"ft-select":!0,"ft-select--filled":!this.outlined,"ft-select--outlined":this.outlined,"ft-select--disabled":a,"ft-select--options-displayed":p,"ft-select--has-option-selected":f,"ft-select--no-label":!this.label,"ft-select--fixed":this.fixedMenuPosition,"ft-select--in-error":this.error};return i.html`
|
|
358
380
|
<div class="${s.classMap(h)}" part="container">
|
|
359
381
|
<div class="ft-select--main-panel" part="main-panel">
|
|
360
382
|
<ft-input-label text="${this.label}"
|
|
@@ -362,6 +384,7 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
362
384
|
?disabled=${a}
|
|
363
385
|
?outlined=${this.outlined}
|
|
364
386
|
?raised=${f||p}
|
|
387
|
+
?error=${this.error}
|
|
365
388
|
></ft-input-label>
|
|
366
389
|
<div class="ft-select--input-panel"
|
|
367
390
|
part="selected-value"
|
|
@@ -400,7 +423,7 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
400
423
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
401
424
|
${t.label}
|
|
402
425
|
</div>
|
|
403
|
-
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value})))}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,l;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(l=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==l?l:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}
|
|
426
|
+
`}updated(t){var e;super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1,this.dispatchEvent(new CustomEvent("change",{detail:null===(e=this.selectedOption)||void 0===e?void 0:e.value}))),t.has("optionsDisplayed")&&this.fixedMenuPosition&&this.hasOptionsMenuOpen&&this.positionOptionsMenu()}positionOptionsMenu(){this.optionsMenu.style.top=this.mainPanel.getBoundingClientRect().top+this.mainPanel.getBoundingClientRect().height+"px",this.optionsMenu.style.left=this.mainPanel.getBoundingClientRect().left+"px",this.optionsMenu.style.minWidth=this.mainPanel.getBoundingClientRect().width+"px"}contentAvailableCallback(t){var e,i;t.has("focusOptions")&&this.focusOptions&&(null===(i=null!==(e=this.selectedOptionElement)&&void 0!==e?e:this.firstOption)||void 0===i||i.focus(),this.focusOptions=!1)}get hasOptionsMenuOpen(){return!this.disabled&&this.optionsDisplayed&&this.hasOptions}get hasOptions(){return this.options.length>0}updateOptionsFromSlot(t){var e;t.stopPropagation();let i=null===(e=this.optionsSlot)||void 0===e?void 0:e.assignedElements().map((t=>t));i&&i.length>0&&(this.options=i)}onMainPanelKeyDown(t){switch(t.key){case" ":t.preventDefault(),t.stopPropagation();case"Enter":this.optionsDisplayed=!this.optionsDisplayed,this.focusOptions=!0;break;case"ArrowUp":case"ArrowDown":t.preventDefault(),t.stopPropagation(),this.optionsDisplayed=!0,this.focusOptions=!0}}onOptionsKeyDown(t){var e,i,o,s,l;let n;switch(t.key){case"Escape":this.optionsDisplayed=!1,null===(e=this.mainPanel)||void 0===e||e.focus();break;case"Tab":this.optionsDisplayed=!1;break;case"ArrowUp":t.preventDefault(),t.stopPropagation(),n=null!==(o=null===(i=this.focusedOption)||void 0===i?void 0:i.previousElementSibling)&&void 0!==o?o:this.lastOption;break;case"ArrowDown":t.preventDefault(),t.stopPropagation(),n=null!==(l=null===(s=this.focusedOption)||void 0===s?void 0:s.nextElementSibling)&&void 0!==l?l:this.firstOption}null==n||n.focus()}onOptionKeyDown(t,e){var i;"Enter"!==t.key&&" "!==t.key||(t.preventDefault(),t.stopPropagation(),this.selectOption(e),this.optionsDisplayed=!1,null===(i=this.mainPanel)||void 0===i||i.focus())}selectOption(t){this.selectedOption=t;for(let e of this.options)e.selected=e===t}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Ee.elementDefinitions={"ft-input-label":se,"ft-typography":ee,"ft-ripple":ue,"ft-icon":ke},Ee.styles=[Yt,Jt,i.css`
|
|
404
427
|
*:focus {
|
|
405
428
|
outline: none;
|
|
406
429
|
}
|
|
@@ -414,7 +437,7 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
414
437
|
.ft-select--main-panel {
|
|
415
438
|
position: relative;
|
|
416
439
|
display: flex;
|
|
417
|
-
height: calc(4 * ${
|
|
440
|
+
height: calc(4 * ${Oe.verticalSpacing} + ${Oe.labelSize} + ${Oe.selectedOptionSize});
|
|
418
441
|
}
|
|
419
442
|
|
|
420
443
|
.ft-select--input-panel {
|
|
@@ -426,19 +449,24 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
426
449
|
padding-left: 16px;
|
|
427
450
|
padding-right: 8px;
|
|
428
451
|
gap: 8px;
|
|
429
|
-
color: ${
|
|
430
|
-
${e.setVariable(
|
|
452
|
+
color: ${Oe.selectedOptionColor};
|
|
453
|
+
${e.setVariable(re.color,Oe.selectedOptionColor)};
|
|
431
454
|
}
|
|
432
455
|
|
|
433
456
|
.ft-select--input-panel,
|
|
434
457
|
.ft-select--option {
|
|
435
|
-
${e.setVariable(
|
|
436
|
-
${e.setVariable(
|
|
458
|
+
${e.setVariable(re.opacityContentOnSurfaceHover,"0.08")};
|
|
459
|
+
${e.setVariable(re.opacityContentOnSurfacePressed,"0.04")};
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
.ft-select--input-panel > *:not(ft-ripple),
|
|
463
|
+
.ft-select--option > *:not(ft-ripple) {
|
|
464
|
+
position: relative;
|
|
437
465
|
}
|
|
438
466
|
|
|
439
467
|
.ft-select--disabled .ft-select--input-panel,
|
|
440
468
|
.ft-select--disabled .ft-select--option {
|
|
441
|
-
color: ${
|
|
469
|
+
color: ${Oe.colorOnSurfaceDisabled};
|
|
442
470
|
}
|
|
443
471
|
|
|
444
472
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -447,18 +475,18 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
447
475
|
}
|
|
448
476
|
|
|
449
477
|
ft-input-label {
|
|
450
|
-
${e.setVariable(oe.fontSize,
|
|
451
|
-
${e.setVariable(oe.raisedFontSize,
|
|
452
|
-
${e.setVariable(oe.verticalSpacing,
|
|
478
|
+
${e.setVariable(oe.fontSize,Oe.selectedOptionSize)};
|
|
479
|
+
${e.setVariable(oe.raisedFontSize,Oe.labelSize)};
|
|
480
|
+
${e.setVariable(oe.verticalSpacing,Oe.verticalSpacing)};
|
|
453
481
|
}
|
|
454
482
|
|
|
455
483
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
456
|
-
color: ${
|
|
484
|
+
color: ${Oe.colorPrimary};
|
|
457
485
|
}
|
|
458
486
|
|
|
459
487
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
460
|
-
${e.setVariable(oe.borderColor,
|
|
461
|
-
${e.setVariable(oe.textColor,
|
|
488
|
+
${e.setVariable(oe.borderColor,Oe.colorPrimary)};
|
|
489
|
+
${e.setVariable(oe.textColor,Oe.colorPrimary)};
|
|
462
490
|
}
|
|
463
491
|
|
|
464
492
|
.ft-select--selected-option {
|
|
@@ -468,8 +496,12 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
468
496
|
overflow: hidden;
|
|
469
497
|
white-space: nowrap;
|
|
470
498
|
text-overflow: ellipsis;
|
|
471
|
-
${e.setVariable(
|
|
472
|
-
${e.setVariable(
|
|
499
|
+
${e.setVariable(vt.fontSize,Oe.selectedOptionSize)};
|
|
500
|
+
${e.setVariable(vt.lineHeight,Oe.selectedOptionSize)};
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
.ft-select--in-error .ft-select--selected-option {
|
|
504
|
+
color: ${Oe.colorError};
|
|
473
505
|
}
|
|
474
506
|
|
|
475
507
|
ft-icon {
|
|
@@ -481,16 +513,16 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
481
513
|
}
|
|
482
514
|
|
|
483
515
|
.ft-select--filled .ft-select--input-panel {
|
|
484
|
-
border-radius: ${
|
|
516
|
+
border-radius: ${Oe.borderRadiusS} ${Oe.borderRadiusS} 0 0;
|
|
485
517
|
}
|
|
486
518
|
|
|
487
519
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
488
520
|
align-self: stretch;
|
|
489
|
-
padding-top: calc(${
|
|
521
|
+
padding-top: calc(${Oe.labelSize} + 2 * ${Oe.verticalSpacing});
|
|
490
522
|
}
|
|
491
523
|
|
|
492
524
|
.ft-select--outlined .ft-select--input-panel {
|
|
493
|
-
border-radius: ${
|
|
525
|
+
border-radius: ${Oe.borderRadiusS};
|
|
494
526
|
}
|
|
495
527
|
|
|
496
528
|
.ft-select--options {
|
|
@@ -499,10 +531,16 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
499
531
|
top: 100%;
|
|
500
532
|
left: 0;
|
|
501
533
|
right: 0;
|
|
502
|
-
color: ${
|
|
503
|
-
background: ${
|
|
504
|
-
z-index: ${
|
|
505
|
-
box-shadow: ${
|
|
534
|
+
color: ${Oe.optionsColor};
|
|
535
|
+
background: ${Oe.colorSurface};
|
|
536
|
+
z-index: ${Oe.optionsZIndex};
|
|
537
|
+
box-shadow: ${Oe.elevation02};
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
.ft-select--fixed .ft-select--options {
|
|
541
|
+
position: fixed;
|
|
542
|
+
right: unset;
|
|
543
|
+
/* left and top are set dynamically */
|
|
506
544
|
}
|
|
507
545
|
|
|
508
546
|
.ft-select--options-displayed .ft-select--options {
|
|
@@ -519,6 +557,10 @@ const W=t=>({_$litStatic$:t}),K=new Map,F=(t=>(e,...i)=>{var o;const s=i.length;
|
|
|
519
557
|
|
|
520
558
|
.ft-select--helper-text {
|
|
521
559
|
padding: 0 12px 0 16px;
|
|
522
|
-
color: ${
|
|
560
|
+
color: ${Oe.helperColor};
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
.ft-select--in-error .ft-select--helper-text {
|
|
564
|
+
color: ${Oe.colorError};
|
|
523
565
|
}
|
|
524
|
-
`],
|
|
566
|
+
`],ze([o.property({type:String})],Ee.prototype,"label",void 0),ze([o.property({type:String})],Ee.prototype,"helper",void 0),ze([o.property({type:Boolean})],Ee.prototype,"outlined",void 0),ze([o.property({type:Boolean})],Ee.prototype,"disabled",void 0),ze([o.property({type:Boolean})],Ee.prototype,"error",void 0),ze([o.property({type:Boolean})],Ee.prototype,"fixedMenuPosition",void 0),ze([o.property({type:Array})],Ee.prototype,"options",void 0),ze([o.state()],Ee.prototype,"selectedOption",void 0),ze([o.state()],Ee.prototype,"optionsDisplayed",void 0),ze([o.state()],Ee.prototype,"focusOptions",void 0),ze([o.query(".ft-select")],Ee.prototype,"container",void 0),ze([o.query(".ft-select--options")],Ee.prototype,"optionsMenu",void 0),ze([o.query(".ft-select--input-panel")],Ee.prototype,"mainPanel",void 0),ze([o.query(".ft-select--option:first-child")],Ee.prototype,"firstOption",void 0),ze([o.query(".ft-select--option:focus")],Ee.prototype,"focusedOption",void 0),ze([o.query(".ft-select--option.ft-select--option-selected")],Ee.prototype,"selectedOptionElement",void 0),ze([o.query(".ft-select--option:last-child")],Ee.prototype,"lastOption",void 0),ze([o.query("slot")],Ee.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Ee),e.customElement("ft-select-option")(Se),t.FtSelect=Ee,t.FtSelectCssVariables=Oe,t.FtSelectOption=Se,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML);
|