@fluid-topics/ft-select 0.3.47 → 0.3.49
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.css.d.ts +1 -0
- package/build/ft-select.css.js +8 -4
- package/build/ft-select.light.js +54 -46
- package/build/ft-select.min.js +24 -16
- package/package.json +7 -7
package/build/ft-select.css.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ export declare const FtSelectCssVariables: {
|
|
|
2
2
|
labelSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
3
3
|
selectedOptionSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
4
4
|
verticalSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
5
|
+
horizontalSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
5
6
|
optionsHeight: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
6
7
|
selectedOptionColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
7
8
|
helperColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
package/build/ft-select.css.js
CHANGED
|
@@ -3,10 +3,12 @@ import { designSystemVariables, FtCssVariableFactory, setVariable } from "@fluid
|
|
|
3
3
|
import { FtInputLabelCssVariables } from "@fluid-topics/ft-input-label/build/ft-input-label.css";
|
|
4
4
|
import { FtTypographyBody1CssVariables } from "@fluid-topics/ft-typography/build/ft-typography.css";
|
|
5
5
|
import { FtRippleCssVariables } from "@fluid-topics/ft-ripple/build/ft-ripple.css";
|
|
6
|
+
import { FtIconCssVariables } from "@fluid-topics/ft-icon/build/ft-icon.css";
|
|
6
7
|
export const FtSelectCssVariables = {
|
|
7
8
|
labelSize: FtCssVariableFactory.create("--ft-select-label-size", "SIZE", "11px"),
|
|
8
9
|
selectedOptionSize: FtCssVariableFactory.create("--ft-select-selected-option-size", "SIZE", "14px"),
|
|
9
10
|
verticalSpacing: FtCssVariableFactory.create("--ft-select-vertical-spacing", "SIZE", "4px"),
|
|
11
|
+
horizontalSpacing: FtCssVariableFactory.create("--ft-select-horizontal-spacing", "SIZE", "16px"),
|
|
10
12
|
optionsHeight: FtCssVariableFactory.create("--ft-select-options-height", "SIZE", "unset"),
|
|
11
13
|
selectedOptionColor: FtCssVariableFactory.extend("--ft-select-selected-option-color", designSystemVariables.colorOnSurface),
|
|
12
14
|
helperColor: FtCssVariableFactory.extend("--ft-select-helper-color", designSystemVariables.colorOnSurfaceMedium),
|
|
@@ -43,8 +45,8 @@ export const styles = css `
|
|
|
43
45
|
display: flex;
|
|
44
46
|
align-items: center;
|
|
45
47
|
overflow: hidden;
|
|
46
|
-
padding-left:
|
|
47
|
-
padding-right:
|
|
48
|
+
padding-left: ${FtSelectCssVariables.horizontalSpacing};
|
|
49
|
+
padding-right: ${FtSelectCssVariables.horizontalSpacing};
|
|
48
50
|
gap: 8px;
|
|
49
51
|
color: ${FtSelectCssVariables.selectedOptionColor};
|
|
50
52
|
${setVariable(FtRippleCssVariables.color, FtSelectCssVariables.selectedOptionColor)};
|
|
@@ -75,6 +77,8 @@ export const styles = css `
|
|
|
75
77
|
${setVariable(FtInputLabelCssVariables.fontSize, FtSelectCssVariables.selectedOptionSize)};
|
|
76
78
|
${setVariable(FtInputLabelCssVariables.raisedFontSize, FtSelectCssVariables.labelSize)};
|
|
77
79
|
${setVariable(FtInputLabelCssVariables.verticalSpacing, FtSelectCssVariables.verticalSpacing)};
|
|
80
|
+
${setVariable(FtInputLabelCssVariables.horizontalSpacing, FtSelectCssVariables.horizontalSpacing)};
|
|
81
|
+
${setVariable(FtInputLabelCssVariables.labelMaxWidth, `calc(100% - ${FtIconCssVariables.size} - 8px)`)};
|
|
78
82
|
}
|
|
79
83
|
|
|
80
84
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -148,7 +152,7 @@ export const styles = css `
|
|
|
148
152
|
|
|
149
153
|
.ft-select--option {
|
|
150
154
|
position: relative;
|
|
151
|
-
padding: 4px
|
|
155
|
+
padding: 4px ${FtSelectCssVariables.horizontalSpacing};
|
|
152
156
|
min-height: 32px;
|
|
153
157
|
display: flex;
|
|
154
158
|
align-items: center;
|
|
@@ -160,7 +164,7 @@ export const styles = css `
|
|
|
160
164
|
}
|
|
161
165
|
|
|
162
166
|
.ft-select--helper-text {
|
|
163
|
-
padding: 0
|
|
167
|
+
padding: 0 ${FtSelectCssVariables.horizontalSpacing};
|
|
164
168
|
color: ${FtSelectCssVariables.helperColor};
|
|
165
169
|
}
|
|
166
170
|
|
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=window,a=p.trustedTypes,f=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,d="?"+h,c=`<${d}>`,u=document,x=(t="")=>u.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,
|
|
7
|
+
var r;const p=window,a=p.trustedTypes,f=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,h=`lit$${(Math.random()+"").slice(9)}$`,d="?"+h,c=`<${d}>`,u=document,x=(t="")=>u.createComment(t),y=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,m=/>/g,$=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),w=/'/g,k=/"/g,z=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),O=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),j=new WeakMap,N=u.createTreeWalker(u,129,null,!1),C=(t,e)=>{const i=t.length-1,o=[];let s,l=2===e?"<svg>":"",n=b;for(let e=0;e<i;e++){const i=t[e];let r,p,a=-1,f=0;for(;f<i.length&&(n.lastIndex=f,p=n.exec(i),null!==p);)f=n.lastIndex,n===b?"!--"===p[1]?n=v:void 0!==p[1]?n=m:void 0!==p[2]?(z.test(p[2])&&(s=RegExp("</"+p[2],"g")),n=$):void 0!==p[3]&&(n=$):n===$?">"===p[0]?(n=null!=s?s:b,a=-1):void 0===p[1]?a=-2:(a=n.lastIndex-p[2].length,r=p[1],n=void 0===p[3]?$:'"'===p[3]?k:w):n===k||n===w?n=$:n===v||n===m?n=b:(n=$,s=void 0);const d=n===$&&t[e+1].startsWith("/>")?" ":"";l+=n===b?i+c:a>=0?(o.push(r),i.slice(0,a)+"$lit$"+i.slice(a)+h+d):i+h+(-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!==f?f.createHTML(r):r,o]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,l=0;const n=t.length-1,r=this.parts,[p,f]=C(t,e);if(this.el=I.createElement(p,i),N.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=N.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(h)){const i=f[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(h),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?B:"?"===e[1]?U:"@"===e[1]?R:_})}else r.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(z.test(o.tagName)){const t=o.textContent.split(h),e=t.length-1;if(e>0){o.textContent=a?a.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],x()),N.nextNode(),r.push({type:2,index:++s});o.append(t[e],x())}}}else if(8===o.nodeType)if(o.data===d)r.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(h,t+1));)r.push({type:7,index:s}),t+=h.length-1}s++}}static createElement(t,e){const i=u.createElement("template");return i.innerHTML=t,i}}function A(t,e,i=t,o){var s,l,n,r;if(e===O)return e;let p=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const a=y(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)._$Co)&&void 0!==n?n:r._$Co=[])[o]=p:i._$Cl=p),void 0!==p&&(e=A(t,p._$AS(t,e.values),p,o)),e}class D{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);N.currentNode=s;let l=N.nextNode(),n=0,r=0,p=o[0];for(;void 0!==p;){if(n===p.index){let e;2===p.type?e=new M(l,l.nextSibling,this,t):1===p.type?e=new p.ctor(l,p.name,p.strings,this,t):6===p.type&&(e=new T(l,this,t)),this.u.push(e),p=o[++r]}n!==(null==p?void 0:p.index)&&(l=N.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 M{constructor(t,e,i,o){var s;this.type=2,this._$AH=E,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),y(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==O&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>g(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!==E&&y(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=I.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 D(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new I(t)),e}k(t){g(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 M(this.O(x()),this.O(x()),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 _{constructor(t,e,i,o,s){this.type=1,this._$AH=E,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=E}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=A(this,t,e,0),l=!y(t)||t!==this._$AH&&t!==O,l&&(this._$AH=t);else{const o=t;let n,r;for(t=s[0],n=0;n<s.length-1;n++)r=A(this,o[i+n],e,n),r===O&&(r=this._$AH[n]),l||(l=!y(r)||r!==this._$AH[n]),r===E?t=E:t!==E&&(t+=(null!=r?r:"")+s[n+1]),this._$AH[n]=r}l&&!o&&this.j(t)}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class B extends _{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===E?void 0:t}}const Z=a?a.emptyScript:"";class U extends _{constructor(){super(...arguments),this.type=4}j(t){t&&t!==E?this.element.setAttribute(this.name,Z):this.element.removeAttribute(this.name)}}class R extends _{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:E)===O)return;const o=this._$AH,s=t===E&&o!==E||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==E&&(o===E||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 T{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 W=p.litHtmlPolyfillSupport;null==W||W(I,M),(null!==(r=p.litHtmlVersions)&&void 0!==r?r:p.litHtmlVersions=[]).push("2.4.0");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:K}),H=new Map,P=(t=>(e,...i)=>{const o=i.length;let s,l;const n=[],r=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(l=i[a],s=F(l));)p+=s+e[++a],f=!0;r.push(l),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=H.get(t))&&(n.raw=n,H.set(t,e=n)),i=r}return t(e,...i)})(S);var q;!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"}(q||(q={}));const L=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),X=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),Y={fontFamily:X,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")},J=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",L),Q=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),V=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),et=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),it=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",L),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"1.5"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",X),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),
|
|
13
|
+
const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:K}),H=new Map,P=(t=>(e,...i)=>{const o=i.length;let s,l;const n=[],r=[];let p,a=0,f=!1;for(;a<o;){for(p=e[a];a<o&&void 0!==(l=i[a],s=F(l));)p+=s+e[++a],f=!0;r.push(l),n.push(p),a++}if(a===o&&n.push(e[o]),f){const t=n.join("$$lit$$");void 0===(e=H.get(t))&&(n.raw=n,H.set(t,e=n)),i=r}return t(e,...i)})(S);var q;!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"}(q||(q={}));const L=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),X=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),Y={fontFamily:X,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")},J=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",L),Q=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",Y.fontSize,"20px"),V=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),et=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),it=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",L),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),at=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),ft=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"1.5"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",X),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"1.7"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),$t={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",X),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",Y.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",Y.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",Y.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",Y.textTransform,"inherit")},wt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",X),kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Y.lineHeight,"1.4"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",Y.textTransform,"inherit"),jt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",X),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",Y.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",Y.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",Y.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",Y.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",Y.textTransform,"inherit")},Nt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",X),Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),It=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",Y.letterSpacing,"0.33px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",Y.lineHeight,"1.6"),Mt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",X),Bt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Zt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Y.lineHeight,"1.6"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Wt=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",X),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),Gt=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",Y.letterSpacing,"1.246px"),Ht=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",Y.lineHeight,"1.15"),Pt=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase"),qt=i.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
15
|
font-family: ${J};
|
|
16
16
|
font-size: ${Q};
|
|
@@ -42,8 +42,8 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
42
42
|
font-family: ${xt};
|
|
43
43
|
font-size: ${yt};
|
|
44
44
|
font-weight: ${gt};
|
|
45
|
-
letter-spacing: ${
|
|
46
|
-
line-height: ${
|
|
45
|
+
letter-spacing: ${bt};
|
|
46
|
+
line-height: ${vt};
|
|
47
47
|
text-transform: ${mt};
|
|
48
48
|
}
|
|
49
49
|
|
|
@@ -78,17 +78,17 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
79
|
font-family: ${Nt};
|
|
80
80
|
font-size: ${Ct};
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
81
|
+
font-weight: ${It};
|
|
82
|
+
letter-spacing: ${At};
|
|
83
83
|
line-height: ${Dt};
|
|
84
|
-
text-transform: ${
|
|
84
|
+
text-transform: ${Mt};
|
|
85
85
|
}
|
|
86
86
|
`,ee=i.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
88
|
+
font-family: ${_t};
|
|
89
89
|
font-size: ${Bt};
|
|
90
|
-
font-weight: ${
|
|
91
|
-
letter-spacing: ${
|
|
90
|
+
font-weight: ${Zt};
|
|
91
|
+
letter-spacing: ${Ut};
|
|
92
92
|
line-height: ${Rt};
|
|
93
93
|
text-transform: ${Tt};
|
|
94
94
|
}
|
|
@@ -112,7 +112,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
112
112
|
</${G(this.element)}>
|
|
113
113
|
`:P`
|
|
114
114
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
115
|
-
`}}le.styles=[qt,Lt,Xt,Yt,Jt,Qt,Vt,te,ee,ie,oe],se([o.property()],le.prototype,"element",void 0),se([o.property()],le.prototype,"variant",void 0),e.customElement("ft-typography")(le);const ne={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"),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")},re=i.css`
|
|
115
|
+
`}}le.styles=[qt,Lt,Xt,Yt,Jt,Qt,Vt,te,ee,ie,oe],se([o.property()],le.prototype,"element",void 0),se([o.property()],le.prototype,"variant",void 0),e.customElement("ft-typography")(le);const ne={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")},re=i.css`
|
|
116
116
|
.ft-input-label {
|
|
117
117
|
position: absolute;
|
|
118
118
|
inset: 0;
|
|
@@ -143,7 +143,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
.ft-input-label:before {
|
|
146
|
-
width: ${ne.horizontalSpacing};
|
|
146
|
+
width: calc(${ne.horizontalSpacing} - 4px);
|
|
147
147
|
flex-shrink: 0;
|
|
148
148
|
}
|
|
149
149
|
|
|
@@ -161,6 +161,8 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
161
161
|
border-color: inherit;
|
|
162
162
|
color: ${ne.textColor};
|
|
163
163
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
164
|
+
max-width: calc(${ne.labelMaxWidth} - 2 * (${ne.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
165
|
+
text-overflow: ellipsis;
|
|
164
166
|
${e.setVariable(jt.fontSize,ne.fontSize)};
|
|
165
167
|
${e.setVariable(jt.lineHeight,ne.fontSize)};
|
|
166
168
|
}
|
|
@@ -176,6 +178,8 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
176
178
|
.ft-input-label--hidden-text {
|
|
177
179
|
padding: 0 4px;
|
|
178
180
|
opacity: 0;
|
|
181
|
+
max-width: 100%;
|
|
182
|
+
box-sizing: border-box;
|
|
179
183
|
}
|
|
180
184
|
|
|
181
185
|
.ft-input-label--floating-text {
|
|
@@ -187,6 +191,8 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
187
191
|
text-overflow: ellipsis;
|
|
188
192
|
padding: ${ne.verticalSpacing} 4px;
|
|
189
193
|
margin: calc(${ne.verticalSpacing} * -1) 0;
|
|
194
|
+
max-width: 100%;
|
|
195
|
+
box-sizing: border-box;
|
|
190
196
|
}
|
|
191
197
|
|
|
192
198
|
.ft-input-label--raised .ft-input-label--text {
|
|
@@ -237,7 +243,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
237
243
|
</div>
|
|
238
244
|
`:null}
|
|
239
245
|
</div>
|
|
240
|
-
`}}ae.elementDefinitions={},ae.styles=[Vt,re],pe([o.property({type:String})],ae.prototype,"text",void 0),pe([o.property({type:Boolean})],ae.prototype,"raised",void 0),pe([o.property({type:Boolean})],ae.prototype,"outlined",void 0),pe([o.property({type:Boolean})],ae.prototype,"disabled",void 0),pe([o.property({type:Boolean})],ae.prototype,"error",void 0),e.customElement("ft-input-label")(ae);const fe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),he={color:fe,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",fe),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")},de=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ce=de,ue=e.FtCssVariableFactory.extend("--ft-ripple-background-color",de),xe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),ye=xe,ge=e.FtCssVariableFactory.extend("--ft-ripple-background-color",xe),
|
|
246
|
+
`}}ae.elementDefinitions={},ae.styles=[Vt,re],pe([o.property({type:String})],ae.prototype,"text",void 0),pe([o.property({type:Boolean})],ae.prototype,"raised",void 0),pe([o.property({type:Boolean})],ae.prototype,"outlined",void 0),pe([o.property({type:Boolean})],ae.prototype,"disabled",void 0),pe([o.property({type:Boolean})],ae.prototype,"error",void 0),e.customElement("ft-input-label")(ae);const fe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),he={color:fe,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",fe),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")},de=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),ce=de,ue=e.FtCssVariableFactory.extend("--ft-ripple-background-color",de),xe=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),ye=xe,ge=e.FtCssVariableFactory.extend("--ft-ripple-background-color",xe),be=i.css`
|
|
241
247
|
:host {
|
|
242
248
|
display: contents;
|
|
243
249
|
}
|
|
@@ -326,7 +332,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
326
332
|
opacity: ${he.opacityContentOnSurfacePressed};
|
|
327
333
|
transform: translate(-50%, -50%) scale(1);
|
|
328
334
|
}
|
|
329
|
-
`;var
|
|
335
|
+
`;var ve,me,$e=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 we 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`
|
|
330
336
|
<style>
|
|
331
337
|
.ft-ripple .ft-ripple--effect,
|
|
332
338
|
.ft-ripple.ft-ripple--unbounded .ft-ripple--background {
|
|
@@ -343,7 +349,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
343
349
|
<div class="ft-ripple--background"></div>
|
|
344
350
|
<div class="ft-ripple--effect"></div>
|
|
345
351
|
</div>
|
|
346
|
-
`}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()}}we.elementDefinitions={},we.styles=ve,$e([o.property({type:Boolean})],we.prototype,"primary",void 0),$e([o.property({type:Boolean})],we.prototype,"secondary",void 0),$e([o.property({type:Boolean})],we.prototype,"unbounded",void 0),$e([o.property({type:Boolean})],we.prototype,"activated",void 0),$e([o.property({type:Boolean})],we.prototype,"selected",void 0),$e([o.property({type:Boolean})],we.prototype,"disabled",void 0),$e([o.state()],we.prototype,"hovered",void 0),$e([o.state()],we.prototype,"focused",void 0),$e([o.state()],we.prototype,"pressed",void 0),$e([o.state()],we.prototype,"rippling",void 0),$e([o.state()],we.prototype,"rippleSize",void 0),$e([o.state()],we.prototype,"originX",void 0),$e([o.state()],we.prototype,"originY",void 0),$e([o.query(".ft-ripple")],we.prototype,"ripple",void 0),$e([o.query(".ft-ripple--effect")],we.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(we),function(t){t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",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.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="",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=""}(be||(be={})),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=""}(me||(me={})),new Map([...["abw"].map((t=>[t,me.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,me.AUDIO])),...["avi"].map((t=>[t,me.AVI])),...["chm","xhs"].map((t=>[t,me.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,me.CODE])),...["csv"].map((t=>[t,me.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,me.DITA])),...["epub"].map((t=>[t,me.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,me.EXCEL])),...["flac"].map((t=>[t,me.FLAC])),...["gif"].map((t=>[t,me.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,me.GZIP])),...["html","htm","xhtml"].map((t=>[t,me.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,me.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,me.JPEG])),...["json"].map((t=>[t,me.JSON])),...["m4a","m4p"].map((t=>[t,me.M4A])),...["mov","qt"].map((t=>[t,me.MOV])),...["mp3"].map((t=>[t,me.MP3])),...["mp4","m4v"].map((t=>[t,me.MP4])),...["ogg","oga"].map((t=>[t,me.OGG])),...["pdf","ps"].map((t=>[t,me.PDF])),...["png"].map((t=>[t,me.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,me.POWERPOINT])),...["rar"].map((t=>[t,me.RAR])),...["stp"].map((t=>[t,me.STP])),...["txt","rtf","md","mdown"].map((t=>[t,me.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,me.VIDEO])),...["wav"].map((t=>[t,me.WAV])),...["wma"].map((t=>[t,me.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,me.WORD])),...["xml","xsl","rdf"].map((t=>[t,me.XML])),...["yaml","yml","x-yaml"].map((t=>[t,me.YAML])),...["zip"].map((t=>[t,me.ZIP]))]);const ke=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),ze=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Se=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Oe=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ee=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
|
|
352
|
+
`}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()}}we.elementDefinitions={},we.styles=be,$e([o.property({type:Boolean})],we.prototype,"primary",void 0),$e([o.property({type:Boolean})],we.prototype,"secondary",void 0),$e([o.property({type:Boolean})],we.prototype,"unbounded",void 0),$e([o.property({type:Boolean})],we.prototype,"activated",void 0),$e([o.property({type:Boolean})],we.prototype,"selected",void 0),$e([o.property({type:Boolean})],we.prototype,"disabled",void 0),$e([o.state()],we.prototype,"hovered",void 0),$e([o.state()],we.prototype,"focused",void 0),$e([o.state()],we.prototype,"pressed",void 0),$e([o.state()],we.prototype,"rippling",void 0),$e([o.state()],we.prototype,"rippleSize",void 0),$e([o.state()],we.prototype,"originX",void 0),$e([o.state()],we.prototype,"originY",void 0),$e([o.query(".ft-ripple")],we.prototype,"ripple",void 0),$e([o.query(".ft-ripple--effect")],we.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(we),function(t){t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",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.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="",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=""}(ve||(ve={})),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=""}(me||(me={})),new Map([...["abw"].map((t=>[t,me.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,me.AUDIO])),...["avi"].map((t=>[t,me.AVI])),...["chm","xhs"].map((t=>[t,me.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,me.CODE])),...["csv"].map((t=>[t,me.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,me.DITA])),...["epub"].map((t=>[t,me.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,me.EXCEL])),...["flac"].map((t=>[t,me.FLAC])),...["gif"].map((t=>[t,me.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,me.GZIP])),...["html","htm","xhtml"].map((t=>[t,me.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,me.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,me.JPEG])),...["json"].map((t=>[t,me.JSON])),...["m4a","m4p"].map((t=>[t,me.M4A])),...["mov","qt"].map((t=>[t,me.MOV])),...["mp3"].map((t=>[t,me.MP3])),...["mp4","m4v"].map((t=>[t,me.MP4])),...["ogg","oga"].map((t=>[t,me.OGG])),...["pdf","ps"].map((t=>[t,me.PDF])),...["png"].map((t=>[t,me.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,me.POWERPOINT])),...["rar"].map((t=>[t,me.RAR])),...["stp"].map((t=>[t,me.STP])),...["txt","rtf","md","mdown"].map((t=>[t,me.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,me.VIDEO])),...["wav"].map((t=>[t,me.WAV])),...["wma"].map((t=>[t,me.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,me.WORD])),...["xml","xsl","rdf"].map((t=>[t,me.XML])),...["yaml","yml","x-yaml"].map((t=>[t,me.YAML])),...["zip"].map((t=>[t,me.ZIP]))]);const ke=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),ze=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Se=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Oe=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ee=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
|
|
347
353
|
:host {
|
|
348
354
|
display: inline-block;
|
|
349
355
|
}
|
|
@@ -380,12 +386,12 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
380
386
|
.ft-icon--material {
|
|
381
387
|
font-family: ${Oe}, "Material Icons", sans-serif;
|
|
382
388
|
}
|
|
383
|
-
`;var Ne;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ne||(Ne={}));var Ce=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
|
|
389
|
+
`;var Ne;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ne||(Ne={}));var Ce=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 Ie extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ne.fluid_topics,this.resolvedIcon=i.nothing}render(){const t="material"!==this.variant||this.value;return i.html`
|
|
384
390
|
<i class="ft-icon ${"ft-icon--"+this.variant}">
|
|
385
391
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
386
392
|
<slot ?hidden=${t}></slot>
|
|
387
393
|
</i>
|
|
388
|
-
`}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 Ne.file_format:this.resolvedIcon=null!==(t=me[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ne.fluid_topics:this.resolvedIcon=null!==(e=
|
|
394
|
+
`}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 Ne.file_format:this.resolvedIcon=null!==(t=me[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Ne.fluid_topics:this.resolvedIcon=null!==(e=ve[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o;break;default:this.resolvedIcon=this.value||i.nothing}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ie.elementDefinitions={},Ie.styles=je,Ce([o.property()],Ie.prototype,"variant",void 0),Ce([o.property()],Ie.prototype,"value",void 0),Ce([o.state()],Ie.prototype,"resolvedIcon",void 0),Ce([o.query("slot")],Ie.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ie);const Ae={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")},De=i.css`
|
|
389
395
|
*:focus {
|
|
390
396
|
outline: none;
|
|
391
397
|
}
|
|
@@ -399,7 +405,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
399
405
|
.ft-select--main-panel {
|
|
400
406
|
position: relative;
|
|
401
407
|
display: flex;
|
|
402
|
-
height: calc(4 * ${
|
|
408
|
+
height: calc(4 * ${Ae.verticalSpacing} + ${Ae.labelSize} + ${Ae.selectedOptionSize});
|
|
403
409
|
}
|
|
404
410
|
|
|
405
411
|
.ft-select--input-panel {
|
|
@@ -408,11 +414,11 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
408
414
|
display: flex;
|
|
409
415
|
align-items: center;
|
|
410
416
|
overflow: hidden;
|
|
411
|
-
padding-left:
|
|
412
|
-
padding-right:
|
|
417
|
+
padding-left: ${Ae.horizontalSpacing};
|
|
418
|
+
padding-right: ${Ae.horizontalSpacing};
|
|
413
419
|
gap: 8px;
|
|
414
|
-
color: ${
|
|
415
|
-
${e.setVariable(he.color,
|
|
420
|
+
color: ${Ae.selectedOptionColor};
|
|
421
|
+
${e.setVariable(he.color,Ae.selectedOptionColor)};
|
|
416
422
|
}
|
|
417
423
|
|
|
418
424
|
.ft-select--input-panel,
|
|
@@ -428,7 +434,7 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
428
434
|
|
|
429
435
|
.ft-select--disabled .ft-select--input-panel,
|
|
430
436
|
.ft-select--disabled .ft-select--option {
|
|
431
|
-
color: ${
|
|
437
|
+
color: ${Ae.colorOnSurfaceDisabled};
|
|
432
438
|
}
|
|
433
439
|
|
|
434
440
|
.ft-select:not(.ft-select--disabled) .ft-select--input-panel,
|
|
@@ -437,18 +443,20 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
437
443
|
}
|
|
438
444
|
|
|
439
445
|
ft-input-label {
|
|
440
|
-
${e.setVariable(ne.fontSize,
|
|
441
|
-
${e.setVariable(ne.raisedFontSize,
|
|
442
|
-
${e.setVariable(ne.verticalSpacing,
|
|
446
|
+
${e.setVariable(ne.fontSize,Ae.selectedOptionSize)};
|
|
447
|
+
${e.setVariable(ne.raisedFontSize,Ae.labelSize)};
|
|
448
|
+
${e.setVariable(ne.verticalSpacing,Ae.verticalSpacing)};
|
|
449
|
+
${e.setVariable(ne.horizontalSpacing,Ae.horizontalSpacing)};
|
|
450
|
+
${e.setVariable(ne.labelMaxWidth,`calc(100% - ${ke} - 8px)`)};
|
|
443
451
|
}
|
|
444
452
|
|
|
445
453
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
446
|
-
color: ${
|
|
454
|
+
color: ${Ae.colorPrimary};
|
|
447
455
|
}
|
|
448
456
|
|
|
449
457
|
.ft-select:not(.ft-select--disabled):focus-within ft-input-label {
|
|
450
|
-
${e.setVariable(ne.borderColor,
|
|
451
|
-
${e.setVariable(ne.textColor,
|
|
458
|
+
${e.setVariable(ne.borderColor,Ae.colorPrimary)};
|
|
459
|
+
${e.setVariable(ne.textColor,Ae.colorPrimary)};
|
|
452
460
|
}
|
|
453
461
|
|
|
454
462
|
.ft-select--selected-option {
|
|
@@ -458,12 +466,12 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
458
466
|
overflow: hidden;
|
|
459
467
|
white-space: nowrap;
|
|
460
468
|
text-overflow: ellipsis;
|
|
461
|
-
${e.setVariable($t.fontSize,
|
|
462
|
-
${e.setVariable($t.lineHeight,
|
|
469
|
+
${e.setVariable($t.fontSize,Ae.selectedOptionSize)};
|
|
470
|
+
${e.setVariable($t.lineHeight,Ae.selectedOptionSize)};
|
|
463
471
|
}
|
|
464
472
|
|
|
465
473
|
.ft-select--in-error .ft-select--selected-option {
|
|
466
|
-
color: ${
|
|
474
|
+
color: ${Ae.colorError};
|
|
467
475
|
}
|
|
468
476
|
|
|
469
477
|
ft-icon {
|
|
@@ -475,16 +483,16 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
475
483
|
}
|
|
476
484
|
|
|
477
485
|
.ft-select--filled .ft-select--input-panel {
|
|
478
|
-
border-radius: ${
|
|
486
|
+
border-radius: ${Ae.borderRadiusS} ${Ae.borderRadiusS} 0 0;
|
|
479
487
|
}
|
|
480
488
|
|
|
481
489
|
.ft-select--filled:not(.ft-select--no-label) .ft-select--selected-option {
|
|
482
490
|
align-self: stretch;
|
|
483
|
-
padding-top: calc(${
|
|
491
|
+
padding-top: calc(${Ae.labelSize} + 2 * ${Ae.verticalSpacing});
|
|
484
492
|
}
|
|
485
493
|
|
|
486
494
|
.ft-select--outlined .ft-select--input-panel {
|
|
487
|
-
border-radius: ${
|
|
495
|
+
border-radius: ${Ae.borderRadiusS};
|
|
488
496
|
}
|
|
489
497
|
|
|
490
498
|
.ft-select--options {
|
|
@@ -493,10 +501,10 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
493
501
|
top: 100%;
|
|
494
502
|
left: 0;
|
|
495
503
|
right: 0;
|
|
496
|
-
color: ${
|
|
497
|
-
background: ${
|
|
498
|
-
z-index: ${
|
|
499
|
-
box-shadow: ${
|
|
504
|
+
color: ${Ae.optionsColor};
|
|
505
|
+
background: ${Ae.colorSurface};
|
|
506
|
+
z-index: ${Ae.optionsZIndex};
|
|
507
|
+
box-shadow: ${Ae.elevation02};
|
|
500
508
|
}
|
|
501
509
|
|
|
502
510
|
.ft-select--fixed .ft-select--options {
|
|
@@ -507,13 +515,13 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
507
515
|
|
|
508
516
|
.ft-select--options-displayed .ft-select--options {
|
|
509
517
|
display: block;
|
|
510
|
-
max-height: ${
|
|
518
|
+
max-height: ${Ae.optionsHeight};
|
|
511
519
|
overflow-y: auto;
|
|
512
520
|
}
|
|
513
521
|
|
|
514
522
|
.ft-select--option {
|
|
515
523
|
position: relative;
|
|
516
|
-
padding: 4px
|
|
524
|
+
padding: 4px ${Ae.horizontalSpacing};
|
|
517
525
|
min-height: 32px;
|
|
518
526
|
display: flex;
|
|
519
527
|
align-items: center;
|
|
@@ -525,14 +533,14 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
525
533
|
}
|
|
526
534
|
|
|
527
535
|
.ft-select--helper-text {
|
|
528
|
-
padding: 0
|
|
529
|
-
color: ${
|
|
536
|
+
padding: 0 ${Ae.horizontalSpacing};
|
|
537
|
+
color: ${Ae.helperColor};
|
|
530
538
|
}
|
|
531
539
|
|
|
532
540
|
.ft-select--in-error .ft-select--helper-text {
|
|
533
|
-
color: ${
|
|
541
|
+
color: ${Ae.colorError};
|
|
534
542
|
}
|
|
535
|
-
`;var
|
|
543
|
+
`;var Me=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 _e 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}))}}_e.elementDefinitions={},Me([o.property({type:String})],_e.prototype,"label",void 0),Me([o.property({type:Object,converter:t=>t})],_e.prototype,"value",void 0),Me([o.property({type:Boolean,reflect:!0})],_e.prototype,"selected",void 0);class Be 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`
|
|
536
544
|
<div class="${s.classMap(h)}" part="container">
|
|
537
545
|
<div class="ft-select--main-panel" part="main-panel">
|
|
538
546
|
<ft-input-label text="${this.label}"
|
|
@@ -580,4 +588,4 @@ const K=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===K)return null==t?void 0:t
|
|
|
580
588
|
<ft-ripple ?primary=${e} ?activated=${e}></ft-ripple>
|
|
581
589
|
<span>${t.label}</span>
|
|
582
590
|
</div>
|
|
583
|
-
`}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),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.width=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){var i,o;if(!e.deepEqual(null===(i=this.selectedOption)||void 0===i?void 0:i.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Be.elementDefinitions={"ft-input-label":ae,"ft-typography":le,"ft-ripple":we,"ft-icon":
|
|
591
|
+
`}updated(t){super.updated(t),t.has("options")&&(this.selectedOption=this.options.filter((t=>t.selected))[0]),t.has("selectedOption")&&(this.optionsDisplayed=!1),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.width=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){var i,o;if(!e.deepEqual(null===(i=this.selectedOption)||void 0===i?void 0:i.value,t.value)){this.selectedOption=t;for(let e of this.options)e.selected=e===t;this.dispatchEvent(new CustomEvent("change",{detail:null===(o=this.selectedOption)||void 0===o?void 0:o.value}))}this.optionsDisplayed=!1}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this.hideOptions)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptions)}}Be.elementDefinitions={"ft-input-label":ae,"ft-typography":le,"ft-ripple":we,"ft-icon":Ie},Be.styles=[Qt,Vt,De],Me([o.property({type:String})],Be.prototype,"label",void 0),Me([o.property({type:String})],Be.prototype,"helper",void 0),Me([o.property({type:Boolean})],Be.prototype,"outlined",void 0),Me([o.property({type:Boolean})],Be.prototype,"disabled",void 0),Me([o.property({type:Boolean})],Be.prototype,"error",void 0),Me([o.property({type:Boolean})],Be.prototype,"fixedMenuPosition",void 0),Me([o.property({type:Array})],Be.prototype,"options",void 0),Me([o.state()],Be.prototype,"selectedOption",void 0),Me([o.state()],Be.prototype,"optionsDisplayed",void 0),Me([o.state()],Be.prototype,"focusOptions",void 0),Me([o.query(".ft-select")],Be.prototype,"container",void 0),Me([o.query(".ft-select--options")],Be.prototype,"optionsMenu",void 0),Me([o.query(".ft-select--input-panel")],Be.prototype,"mainPanel",void 0),Me([o.query(".ft-select--option:first-child")],Be.prototype,"firstOption",void 0),Me([o.query(".ft-select--option:focus")],Be.prototype,"focusedOption",void 0),Me([o.query(".ft-select--option.ft-select--option-selected")],Be.prototype,"selectedOptionElement",void 0),Me([o.query(".ft-select--option:last-child")],Be.prototype,"lastOption",void 0),Me([o.query("slot")],Be.prototype,"optionsSlot",void 0),e.customElement("ft-select")(Be),e.customElement("ft-select-option")(_e),t.FtSelect=Be,t.FtSelectCssVariables=Ae,t.FtSelectOption=_e,t.styles=De,Object.defineProperty(t,"t",{value:!0})}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litRepeat,ftGlobals.litUnsafeHTML);
|
package/build/ft-select.min.js
CHANGED
|
@@ -50,13 +50,13 @@ function n(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var s;if(void 0===o)
|
|
|
50
50
|
* @license
|
|
51
51
|
* Copyright 2017 Google LLC
|
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
53
|
-
*/;var b;const g=window,m=g.trustedTypes
|
|
53
|
+
*/;var b;const g=window,m=g.trustedTypes,$=m?m.emptyScript:"",w=g.reactiveElementPolyfillSupport,O={toAttribute(t,e){switch(e){case Boolean:t=t?$:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},S=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:O,reflect:!1,hasChanged:S};class E extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=k){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const s=this[t];this[e]=o,this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return x(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=k){var o;const s=this.constructor._$Ep(t,i);if(void 0!==s&&!0===i.reflect){const n=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:O).toAttribute(e,i.type);this._$El=t,null==n?this.removeAttribute(s):this.setAttribute(s,n),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,s=o._$Ev.get(t);if(void 0!==s&&this._$El!==s){const t=o.getPropertyOptions(s),n="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:O;this._$El=s,this[s]=n.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||S)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null
|
|
59
|
+
var N;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:E}),(null!==(b=g.reactiveElementVersions)&&void 0!==b?b:g.reactiveElementVersions=[]).push("1.4.1");const C=window,M=C.trustedTypes,R=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,z="?"+U,j=`<${z}>`,F=document,A=(t="")=>F.createComment(t),B=t=>null===t||"object"!=typeof t&&"function"!=typeof t,D=Array.isArray,P=t=>D(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,T=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,H=/"/g,K=/^(?:script|style|textarea|title)$/i,Z=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),q=new WeakMap,X=F.createTreeWalker(F,129,null,!1),Y=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=L;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,c=0;for(;c<i.length&&(r.lastIndex=c,a=r.exec(i),null!==a);)c=r.lastIndex,r===L?"!--"===a[1]?r=_:void 0!==a[1]?r=T:void 0!==a[2]?(K.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=s?s:L,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?H:W):r===H||r===W?r=I:r===_||r===T?r=L:(r=I,s=void 0);const h=r===I&&t[e+1].startsWith("/>")?" ":"";n+=r===L?i+j:p>=0?(o.push(l),i.slice(0,p)+"$lit$"+i.slice(p)+U+h):i+U+(-2===p?(o.push(void 0),e):h)}const l=n+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==R?R.createHTML(l):l,o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,p]=Y(t,e);if(this.el=G.createElement(a,i),X.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=X.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(U)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(U),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?nt:"@"===e[1]?rt:it})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(K.test(o.tagName)){const t=o.textContent.split(U),e=t.length-1;if(e>0){o.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],A()),X.nextNode(),l.push({type:2,index:++s});o.append(t[e],A())}}}else if(8===o.nodeType)if(o.data===z)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,e){const i=F.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var s,n,r,l;if(e===V)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=B(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,i,o)),void 0!==o?(null!==(r=(l=i)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=Q(t,a._$AS(t,e.values),a,o)),e}class tt{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:F).importNode(i,!0);X.currentNode=s;let n=X.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new et(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new lt(n,this,t)),this.u.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=X.nextNode(),r++)}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 et{constructor(t,e,i,o){var s;this.type=2,this._$AH=J,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=Q(this,t,e),B(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):P(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!==J&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.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=G.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 tt(s,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=q.get(t.strings);return void 0===e&&q.set(t.strings,e=new G(t)),e}k(t){D(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 et(this.O(A()),this.O(A()),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 it{constructor(t,e,i,o,s){this.type=1,this._$AH=J,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=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const s=this.strings;let n=!1;if(void 0===s)t=Q(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==V,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=Q(this,o[i+r],e,r),l===V&&(l=this._$AH[r]),n||(n=!B(l)||l!==this._$AH[r]),l===J?t=J:t!==J&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const st=M?M.emptyScript:"";class nt extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,st):this.element.removeAttribute(this.name)}}class rt extends it{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=Q(this,t,e,0))&&void 0!==i?i:J)===V)return;const o=this._$AH,s=t===J&&o!==J||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==J&&(o===J||s);s&&this.element.removeEventListener(this.name,this,o),n&&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 lt{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){Q(this,t)}}const at={P:"$lit$",A:U,M:z,C:1,L:Y,R:tt,D:P,V:Q,I:et,H:it,N:nt,U:rt,B:ot,F:lt},pt=C.litHtmlPolyfillSupport;null==pt||pt(G,et),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.4.0");
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
@@ -99,17 +99,17 @@ var ct,ht;class ft extends E{constructor(){super(...arguments),this.renderOption
|
|
|
99
99
|
* Copyright 2017 Google LLC
|
|
100
100
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
101
101
|
*/
|
|
102
|
-
const
|
|
102
|
+
const $t=1,wt=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
103
103
|
/**
|
|
104
104
|
* @license
|
|
105
105
|
* Copyright 2018 Google LLC
|
|
106
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
107
|
-
*/const kt=Ot(class extends St{constructor(t){var e;if(super(t),t.type
|
|
107
|
+
*/const kt=Ot(class extends St{constructor(t){var e;if(super(t),t.type!==$t||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const s=t.element.classList;this.nt.forEach((t=>{t in e||(s.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.nt.add(t)):(s.remove(t),this.nt.delete(t)))}return V}}),{I:Et}=at,Nt=()=>document.createComment(""),Ct=(t,e,i)=>{var o;const s=t._$AA.parentNode,n=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Nt(),n),o=s.insertBefore(Nt(),n);i=new Et(e,o,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,l=r!==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)!==r._$AU&&i._$AP(e)}if(e!==n||l){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,n),t=e}}}return i},Mt=(t,e,i=t)=>(t._$AI(e,i),t),Rt={},Ut=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}},zt=(t,e,i)=>{const o=new Map;for(let s=e;s<=i;s++)o.set(t[s],s);return o},jt=Ot(class extends St{constructor(t){if(super(t),t.type!==wt)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=[],n=[];let r=0;for(const e of t)s[r]=o?o(e,r):r,n[r]=i(e,r),r++;return{values:n,keys:s}}render(t,e,i){return this.ht(t,e,i).values}update(t,[e,i,o]){var s;const n=(t=>t._$AH)(t),{values:r,keys:l}=this.ht(e,i,o);if(!Array.isArray(n))return this.ut=l,r;const a=null!==(s=this.ut)&&void 0!==s?s:this.ut=[],p=[];let c,h,f=0,d=n.length-1,u=0,y=r.length-1;for(;f<=d&&u<=y;)if(null===n[f])f++;else if(null===n[d])d--;else if(a[f]===l[u])p[u]=Mt(n[f],r[u]),f++,u++;else if(a[d]===l[y])p[y]=Mt(n[d],r[y]),d--,y--;else if(a[f]===l[y])p[y]=Mt(n[f],r[y]),Ct(t,p[y+1],n[f]),f++,y--;else if(a[d]===l[u])p[u]=Mt(n[d],r[u]),Ct(t,n[f],n[d]),d--,u++;else if(void 0===c&&(c=zt(l,u,y),h=zt(a,f,d)),c.has(a[f]))if(c.has(a[d])){const e=h.get(l[u]),i=void 0!==e?n[e]:null;if(null===i){const e=Ct(t,n[f]);Mt(e,r[u]),p[u]=e}else p[u]=Mt(i,r[u]),Ct(t,n[f],i),n[e]=null;u++}else Ut(n[d]),d--;else Ut(n[f]),f++;for(;u<=y;){const e=Ct(t,p[y+1]);Mt(e,r[u]),p[u++]=e}for(;f<=d;){const t=n[f++];null!==t&&Ut(t)}return this.ut=l,((t,e=Rt)=>{t._$AH=e})(t,p),V}}),Ft=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===Ft)return null==t?void 0:t._$litStatic$},Bt=t=>({_$litStatic$:t,r:Ft}),Dt=new Map,Pt=(t=>(e,...i)=>{const o=i.length;let s,n;const r=[],l=[];let a,p=0,c=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=At(n));)a+=s+e[++p],c=!0;l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),c){const t=r.join("$$lit$$");void 0===(e=Dt.get(t))&&(r.raw=r,Dt.set(t,e=r)),i=l}return t(e,...i)})(Z);
|
|
108
108
|
/**
|
|
109
109
|
* @license
|
|
110
110
|
* Copyright 2020 Google LLC
|
|
111
111
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
112
|
-
*/var Lt;!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"}(Lt||(Lt={}));const _t=ut.extend("--ft-typography-font-family",xt.titleFont),Tt=ut.extend("--ft-typography-font-family",xt.contentFont),It={fontFamily:Tt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ut.extend("--ft-typography-title-font-family",_t),Ht=ut.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Kt=ut.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=ut.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=ut.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=ut.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=ut.extend("--ft-typography-title-dense-font-family",_t),Xt=ut.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=ut.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=ut.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=ut.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),te=ut.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ee=ut.extend("--ft-typography-subtitle1-font-family",Tt),ie=ut.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oe=ut.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),se=ut.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ne=ut.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),re=ut.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),le=ut.extend("--ft-typography-subtitle2-font-family",Tt),ae=ut.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),pe=ut.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),ce=ut.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),he=ut.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fe=ut.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),de={fontFamily:ut.extend("--ft-typography-body1-font-family",Tt),fontSize:ut.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),textTransform:ut.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit")},ue=ut.extend("--ft-typography-body2-font-family",Tt),ye=ut.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),xe=ut.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),ve=ut.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),be=ut.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),ge=ut.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit"),me={fontFamily:ut.extend("--ft-typography-caption-font-family",Tt),fontSize:ut.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),textTransform:ut.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit")}
|
|
112
|
+
*/var Lt;!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"}(Lt||(Lt={}));const _t=ut.extend("--ft-typography-font-family",xt.titleFont),Tt=ut.extend("--ft-typography-font-family",xt.contentFont),It={fontFamily:Tt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=ut.extend("--ft-typography-title-font-family",_t),Ht=ut.extend("--ft-typography-title-font-size",It.fontSize,"20px"),Kt=ut.extend("--ft-typography-title-font-weight",It.fontWeight,"normal"),Zt=ut.extend("--ft-typography-title-letter-spacing",It.letterSpacing,"0.15px"),Vt=ut.extend("--ft-typography-title-line-height",It.lineHeight,"1.2"),Jt=ut.extend("--ft-typography-title-text-transform",It.textTransform,"inherit"),qt=ut.extend("--ft-typography-title-dense-font-family",_t),Xt=ut.extend("--ft-typography-title-dense-font-size",It.fontSize,"14px"),Yt=ut.extend("--ft-typography-title-dense-font-weight",It.fontWeight,"normal"),Gt=ut.extend("--ft-typography-title-dense-letter-spacing",It.letterSpacing,"0.105px"),Qt=ut.extend("--ft-typography-title-dense-line-height",It.lineHeight,"1.7"),te=ut.extend("--ft-typography-title-dense-text-transform",It.textTransform,"inherit"),ee=ut.extend("--ft-typography-subtitle1-font-family",Tt),ie=ut.extend("--ft-typography-subtitle1-font-size",It.fontSize,"16px"),oe=ut.extend("--ft-typography-subtitle1-font-weight",It.fontWeight,"600"),se=ut.extend("--ft-typography-subtitle1-letter-spacing",It.letterSpacing,"0.144px"),ne=ut.extend("--ft-typography-subtitle1-line-height",It.lineHeight,"1.5"),re=ut.extend("--ft-typography-subtitle1-text-transform",It.textTransform,"inherit"),le=ut.extend("--ft-typography-subtitle2-font-family",Tt),ae=ut.extend("--ft-typography-subtitle2-font-size",It.fontSize,"14px"),pe=ut.extend("--ft-typography-subtitle2-font-weight",It.fontWeight,"normal"),ce=ut.extend("--ft-typography-subtitle2-letter-spacing",It.letterSpacing,"0.098px"),he=ut.extend("--ft-typography-subtitle2-line-height",It.lineHeight,"1.7"),fe=ut.extend("--ft-typography-subtitle2-text-transform",It.textTransform,"inherit"),de={fontFamily:ut.extend("--ft-typography-body1-font-family",Tt),fontSize:ut.extend("--ft-typography-body1-font-size",It.fontSize,"16px"),fontWeight:ut.extend("--ft-typography-body1-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-body1-letter-spacing",It.letterSpacing,"0.496px"),lineHeight:ut.extend("--ft-typography-body1-line-height",It.lineHeight,"1.5"),textTransform:ut.extend("--ft-typography-body1-text-transform",It.textTransform,"inherit")},ue=ut.extend("--ft-typography-body2-font-family",Tt),ye=ut.extend("--ft-typography-body2-font-size",It.fontSize,"14px"),xe=ut.extend("--ft-typography-body2-font-weight",It.fontWeight,"normal"),ve=ut.extend("--ft-typography-body2-letter-spacing",It.letterSpacing,"0.252px"),be=ut.extend("--ft-typography-body2-line-height",It.lineHeight,"1.4"),ge=ut.extend("--ft-typography-body2-text-transform",It.textTransform,"inherit"),me={fontFamily:ut.extend("--ft-typography-caption-font-family",Tt),fontSize:ut.extend("--ft-typography-caption-font-size",It.fontSize,"12px"),fontWeight:ut.extend("--ft-typography-caption-font-weight",It.fontWeight,"normal"),letterSpacing:ut.extend("--ft-typography-caption-letter-spacing",It.letterSpacing,"0.396px"),lineHeight:ut.extend("--ft-typography-caption-line-height",It.lineHeight,"1.33"),textTransform:ut.extend("--ft-typography-caption-text-transform",It.textTransform,"inherit")},$e=ut.extend("--ft-typography-breadcrumb-font-family",Tt),we=ut.extend("--ft-typography-breadcrumb-font-size",It.fontSize,"10px"),Oe=ut.extend("--ft-typography-breadcrumb-font-weight",It.fontWeight,"normal"),Se=ut.extend("--ft-typography-breadcrumb-letter-spacing",It.letterSpacing,"0.33px"),ke=ut.extend("--ft-typography-breadcrumb-line-height",It.lineHeight,"1.6"),Ee=ut.extend("--ft-typography-breadcrumb-text-transform",It.textTransform,"inherit"),Ne=ut.extend("--ft-typography-overline-font-family",Tt),Ce=ut.extend("--ft-typography-overline-font-size",It.fontSize,"10px"),Me=ut.extend("--ft-typography-overline-font-weight",It.fontWeight,"normal"),Re=ut.extend("--ft-typography-overline-letter-spacing",It.letterSpacing,"1.5px"),Ue=ut.extend("--ft-typography-overline-line-height",It.lineHeight,"1.6"),ze=ut.extend("--ft-typography-overline-text-transform",It.textTransform,"uppercase"),je=ut.extend("--ft-typography-button-font-family",Tt),Fe=ut.extend("--ft-typography-button-font-size",It.fontSize,"14px"),Ae=ut.extend("--ft-typography-button-font-weight",It.fontWeight,"600"),Be=ut.extend("--ft-typography-button-letter-spacing",It.letterSpacing,"1.246px"),De=ut.extend("--ft-typography-button-line-height",It.lineHeight,"1.15"),Pe=ut.extend("--ft-typography-button-text-transform",It.textTransform,"uppercase"),Le=y`
|
|
113
113
|
.ft-typography--title {
|
|
114
114
|
font-family: ${Wt};
|
|
115
115
|
font-size: ${Ht};
|
|
@@ -175,8 +175,8 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
175
175
|
}
|
|
176
176
|
`,Ze=y`
|
|
177
177
|
.ft-typography--breadcrumb {
|
|
178
|
-
font-family: ${
|
|
179
|
-
font-size: ${
|
|
178
|
+
font-family: ${$e};
|
|
179
|
+
font-size: ${we};
|
|
180
180
|
font-weight: ${Oe};
|
|
181
181
|
letter-spacing: ${Se};
|
|
182
182
|
line-height: ${ke};
|
|
@@ -211,7 +211,7 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
211
211
|
</${Bt(this.element)}>
|
|
212
212
|
`:Pt`
|
|
213
213
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
214
|
-
`}}Ye.styles=[Le,_e,Te,Ie,We,He,Ke,Ze,Ve,Je,qe],Xe([o()],Ye.prototype,"element",void 0),Xe([o()],Ye.prototype,"variant",void 0),l("ft-typography")(Ye);const Ge={fontSize:ut.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ut.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ut.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ut.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:ut.extend("--ft-input-label-border-color",xt.colorOutline),textColor:ut.extend("--ft-input-label-text-color",xt.colorOnSurfaceMedium),disabledTextColor:ut.extend("--ft-input-label-disabled-text-color",xt.colorOnSurfaceDisabled),colorSurface:ut.external(xt.colorSurface,"Design system"),borderRadiusS:ut.external(xt.borderRadiusS,"Design system"),colorError:ut.external(xt.colorError,"Design system")},Qe=y`
|
|
214
|
+
`}}Ye.styles=[Le,_e,Te,Ie,We,He,Ke,Ze,Ve,Je,qe],Xe([o()],Ye.prototype,"element",void 0),Xe([o()],Ye.prototype,"variant",void 0),l("ft-typography")(Ye);const Ge={fontSize:ut.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:ut.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:ut.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:ut.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:ut.create("--ft-input-label-max-width","SIZE","100%"),borderColor:ut.extend("--ft-input-label-border-color",xt.colorOutline),textColor:ut.extend("--ft-input-label-text-color",xt.colorOnSurfaceMedium),disabledTextColor:ut.extend("--ft-input-label-disabled-text-color",xt.colorOnSurfaceDisabled),colorSurface:ut.external(xt.colorSurface,"Design system"),borderRadiusS:ut.external(xt.borderRadiusS,"Design system"),colorError:ut.external(xt.colorError,"Design system")},Qe=y`
|
|
215
215
|
.ft-input-label {
|
|
216
216
|
position: absolute;
|
|
217
217
|
inset: 0;
|
|
@@ -242,7 +242,7 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
242
242
|
}
|
|
243
243
|
|
|
244
244
|
.ft-input-label:before {
|
|
245
|
-
width: ${Ge.horizontalSpacing};
|
|
245
|
+
width: calc(${Ge.horizontalSpacing} - 4px);
|
|
246
246
|
flex-shrink: 0;
|
|
247
247
|
}
|
|
248
248
|
|
|
@@ -260,6 +260,8 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
260
260
|
border-color: inherit;
|
|
261
261
|
color: ${Ge.textColor};
|
|
262
262
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
263
|
+
max-width: calc(${Ge.labelMaxWidth} - 2 * (${Ge.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
264
|
+
text-overflow: ellipsis;
|
|
263
265
|
${yt(me.fontSize,Ge.fontSize)};
|
|
264
266
|
${yt(me.lineHeight,Ge.fontSize)};
|
|
265
267
|
}
|
|
@@ -275,6 +277,8 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
275
277
|
.ft-input-label--hidden-text {
|
|
276
278
|
padding: 0 4px;
|
|
277
279
|
opacity: 0;
|
|
280
|
+
max-width: 100%;
|
|
281
|
+
box-sizing: border-box;
|
|
278
282
|
}
|
|
279
283
|
|
|
280
284
|
.ft-input-label--floating-text {
|
|
@@ -286,6 +290,8 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
286
290
|
text-overflow: ellipsis;
|
|
287
291
|
padding: ${Ge.verticalSpacing} 4px;
|
|
288
292
|
margin: calc(${Ge.verticalSpacing} * -1) 0;
|
|
293
|
+
max-width: 100%;
|
|
294
|
+
box-sizing: border-box;
|
|
289
295
|
}
|
|
290
296
|
|
|
291
297
|
.ft-input-label--raised .ft-input-label--text {
|
|
@@ -448,7 +454,7 @@ const wt=1,$t=2,Ot=t=>(...e)=>({_$litDirective$:t,values:e});class St{constructo
|
|
|
448
454
|
* Copyright 2017 Google LLC
|
|
449
455
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
450
456
|
*/
|
|
451
|
-
class di extends St{constructor(t){if(super(t),this.it=J,t.type
|
|
457
|
+
class di extends St{constructor(t){if(super(t),this.it=J,t.type!==wt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===J||null==t)return this._t=void 0,this.it=t;if(t===V)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:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=Ot(di);var yi,xi;!function(t){t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",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.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="",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=""}(yi||(yi={})),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=""}(xi||(xi={})),new Map([...["abw"].map((t=>[t,xi.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,xi.AUDIO])),...["avi"].map((t=>[t,xi.AVI])),...["chm","xhs"].map((t=>[t,xi.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,xi.CODE])),...["csv"].map((t=>[t,xi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,xi.DITA])),...["epub"].map((t=>[t,xi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,xi.EXCEL])),...["flac"].map((t=>[t,xi.FLAC])),...["gif"].map((t=>[t,xi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,xi.GZIP])),...["html","htm","xhtml"].map((t=>[t,xi.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,xi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,xi.JPEG])),...["json"].map((t=>[t,xi.JSON])),...["m4a","m4p"].map((t=>[t,xi.M4A])),...["mov","qt"].map((t=>[t,xi.MOV])),...["mp3"].map((t=>[t,xi.MP3])),...["mp4","m4v"].map((t=>[t,xi.MP4])),...["ogg","oga"].map((t=>[t,xi.OGG])),...["pdf","ps"].map((t=>[t,xi.PDF])),...["png"].map((t=>[t,xi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,xi.POWERPOINT])),...["rar"].map((t=>[t,xi.RAR])),...["stp"].map((t=>[t,xi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,xi.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,xi.VIDEO])),...["wav"].map((t=>[t,xi.WAV])),...["wma"].map((t=>[t,xi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,xi.WORD])),...["xml","xsl","rdf"].map((t=>[t,xi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,xi.YAML])),...["zip"].map((t=>[t,xi.ZIP]))]);const vi=ut.create("--ft-icon-font-size","SIZE","24px"),bi=ut.extend("--ft-icon-fluid-topics-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-icons")),gi=ut.extend("--ft-icon-file-format-font-family",ut.create("--ft-icon-font-family","UNKNOWN","ft-mime")),mi=ut.extend("--ft-icon-material-font-family",ut.create("--ft-icon-font-family","UNKNOWN","Material Icons")),$i=ut.create("--ft-icon-vertical-align","UNKNOWN","unset"),wi=y`
|
|
452
458
|
:host {
|
|
453
459
|
display: inline-block;
|
|
454
460
|
}
|
|
@@ -471,7 +477,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
|
|
|
471
477
|
text-rendering: auto;
|
|
472
478
|
-webkit-font-smoothing: antialiased;
|
|
473
479
|
-moz-osx-font-smoothing: grayscale;
|
|
474
|
-
vertical-align: ${
|
|
480
|
+
vertical-align: ${$i};
|
|
475
481
|
}
|
|
476
482
|
|
|
477
483
|
.ft-icon--fluid-topics {
|
|
@@ -490,7 +496,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
|
|
|
490
496
|
${ui(this.resolvedIcon)}
|
|
491
497
|
<slot ?hidden=${t}></slot>
|
|
492
498
|
</i>
|
|
493
|
-
`}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 Oi.file_format:this.resolvedIcon=null!==(t=xi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.fluid_topics:this.resolvedIcon=null!==(e=yi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles
|
|
499
|
+
`}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 Oi.file_format:this.resolvedIcon=null!==(t=xi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.fluid_topics:this.resolvedIcon=null!==(e=yi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i;break;default:this.resolvedIcon=this.value||J}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles=wi,Si([o()],ki.prototype,"variant",void 0),Si([o()],ki.prototype,"value",void 0),Si([s()],ki.prototype,"resolvedIcon",void 0),Si([n("slot")],ki.prototype,"slottedContent",void 0),l("ft-icon")(ki);const Ei={labelSize:ut.create("--ft-select-label-size","SIZE","11px"),selectedOptionSize:ut.create("--ft-select-selected-option-size","SIZE","14px"),verticalSpacing:ut.create("--ft-select-vertical-spacing","SIZE","4px"),horizontalSpacing:ut.create("--ft-select-horizontal-spacing","SIZE","16px"),optionsHeight:ut.create("--ft-select-options-height","SIZE","unset"),selectedOptionColor:ut.extend("--ft-select-selected-option-color",xt.colorOnSurface),helperColor:ut.extend("--ft-select-helper-color",xt.colorOnSurfaceMedium),optionsColor:ut.extend("--ft-select-options-color",xt.colorOnSurface),optionsZIndex:ut.create("--ft-select-options-z-index","NUMBER","3"),colorSurface:ut.external(xt.colorSurface,"Design system"),colorOnSurfaceDisabled:ut.external(xt.colorOnSurfaceDisabled,"Design system"),colorPrimary:ut.external(xt.colorPrimary,"Design system"),borderRadiusS:ut.external(xt.borderRadiusS,"Design system"),elevation02:ut.external(xt.elevation02,"Design system"),colorError:ut.external(xt.colorError,"Design system")},Ni=y`
|
|
494
500
|
*:focus {
|
|
495
501
|
outline: none;
|
|
496
502
|
}
|
|
@@ -513,8 +519,8 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
|
|
|
513
519
|
display: flex;
|
|
514
520
|
align-items: center;
|
|
515
521
|
overflow: hidden;
|
|
516
|
-
padding-left:
|
|
517
|
-
padding-right:
|
|
522
|
+
padding-left: ${Ei.horizontalSpacing};
|
|
523
|
+
padding-right: ${Ei.horizontalSpacing};
|
|
518
524
|
gap: 8px;
|
|
519
525
|
color: ${Ei.selectedOptionColor};
|
|
520
526
|
${yt(oi.color,Ei.selectedOptionColor)};
|
|
@@ -545,6 +551,8 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
|
|
|
545
551
|
${yt(Ge.fontSize,Ei.selectedOptionSize)};
|
|
546
552
|
${yt(Ge.raisedFontSize,Ei.labelSize)};
|
|
547
553
|
${yt(Ge.verticalSpacing,Ei.verticalSpacing)};
|
|
554
|
+
${yt(Ge.horizontalSpacing,Ei.horizontalSpacing)};
|
|
555
|
+
${yt(Ge.labelMaxWidth,`calc(100% - ${vi} - 8px)`)};
|
|
548
556
|
}
|
|
549
557
|
|
|
550
558
|
.ft-select:not(.ft-select--disabled):focus-within ft-icon {
|
|
@@ -618,7 +626,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
|
|
|
618
626
|
|
|
619
627
|
.ft-select--option {
|
|
620
628
|
position: relative;
|
|
621
|
-
padding: 4px
|
|
629
|
+
padding: 4px ${Ei.horizontalSpacing};
|
|
622
630
|
min-height: 32px;
|
|
623
631
|
display: flex;
|
|
624
632
|
align-items: center;
|
|
@@ -630,7 +638,7 @@ class di extends St{constructor(t){if(super(t),this.it=J,t.type!==$t)throw Error
|
|
|
630
638
|
}
|
|
631
639
|
|
|
632
640
|
.ft-select--helper-text {
|
|
633
|
-
padding: 0
|
|
641
|
+
padding: 0 ${Ei.horizontalSpacing};
|
|
634
642
|
color: ${Ei.helperColor};
|
|
635
643
|
}
|
|
636
644
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-select",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.49",
|
|
4
4
|
"description": "Value selector for a predefined list of choices",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.3.
|
|
23
|
-
"@fluid-topics/ft-input-label": "0.3.
|
|
24
|
-
"@fluid-topics/ft-ripple": "0.3.
|
|
25
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.49",
|
|
23
|
+
"@fluid-topics/ft-input-label": "0.3.49",
|
|
24
|
+
"@fluid-topics/ft-ripple": "0.3.49",
|
|
25
|
+
"@fluid-topics/ft-typography": "0.3.49",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "0.3.49",
|
|
27
27
|
"lit": "2.2.8"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "3584a4f0b3edc500a360c2afe2ef3e5cdbb604b6"
|
|
30
30
|
}
|