@fluid-topics/ft-text-field 1.0.29 → 1.0.31
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.
|
@@ -176,4 +176,8 @@ export const styles = css `
|
|
|
176
176
|
.ft-text-field--with-icon {
|
|
177
177
|
${setVariable(FtInputLabelCssVariables.labelMaxWidth, `calc(100% - ${FtIconCssVariables.size} - ${FtInputLabelCssVariables.horizontalSpacing})`)};
|
|
178
178
|
}
|
|
179
|
+
|
|
180
|
+
.ft-text-field--with-password ft-icon:hover {
|
|
181
|
+
cursor: pointer;
|
|
182
|
+
}
|
|
179
183
|
`;
|
package/build/ft-text-field.d.ts
CHANGED
|
@@ -17,10 +17,14 @@ export declare class FtTextField extends FtLitElement implements FtTextFieldProp
|
|
|
17
17
|
error: boolean;
|
|
18
18
|
prefix: string | null;
|
|
19
19
|
icon?: string;
|
|
20
|
+
passwordHiddenIcon: string;
|
|
21
|
+
passwordRevealedIcon: string;
|
|
20
22
|
iconVariant?: string;
|
|
21
23
|
filterSuggestions: boolean;
|
|
22
24
|
maxLength?: number;
|
|
25
|
+
password: boolean;
|
|
23
26
|
focused: boolean;
|
|
27
|
+
hidePassword: boolean;
|
|
24
28
|
suggestionsOnTop: boolean;
|
|
25
29
|
hideSuggestions: boolean;
|
|
26
30
|
visibleSuggestions: FtTextFieldSuggestion[];
|
|
@@ -30,6 +34,8 @@ export declare class FtTextField extends FtLitElement implements FtTextFieldProp
|
|
|
30
34
|
suggestions: FtTextFieldSuggestion[];
|
|
31
35
|
focus(): void;
|
|
32
36
|
protected render(): import("lit-html").TemplateResult<1>;
|
|
37
|
+
private renderPasswordIcon;
|
|
38
|
+
private renderIcon;
|
|
33
39
|
protected updated(props: PropertyValues): void;
|
|
34
40
|
private filterSuggestionsIfNeeded;
|
|
35
41
|
protected contentAvailableCallback(props: PropertyValues): void;
|
|
@@ -40,4 +46,5 @@ export declare class FtTextField extends FtLitElement implements FtTextFieldProp
|
|
|
40
46
|
private onSuggestionSelected;
|
|
41
47
|
private onFocus;
|
|
42
48
|
private onMainPanelBlur;
|
|
49
|
+
private togglePasswordVisibility;
|
|
43
50
|
}
|
package/build/ft-text-field.js
CHANGED
|
@@ -12,7 +12,7 @@ import { FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
|
12
12
|
import { FtTypography, FtTypographyBody1 } from "@fluid-topics/ft-typography";
|
|
13
13
|
import { FtInputLabel } from "@fluid-topics/ft-input-label";
|
|
14
14
|
import { FtRipple } from "@fluid-topics/ft-ripple";
|
|
15
|
-
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
15
|
+
import { FtIcon, FtIcons } from "@fluid-topics/ft-icon";
|
|
16
16
|
import { styles } from "./ft-text-field.css";
|
|
17
17
|
class FtTextField extends FtLitElement {
|
|
18
18
|
constructor() {
|
|
@@ -23,8 +23,12 @@ class FtTextField extends FtLitElement {
|
|
|
23
23
|
this.disabled = false;
|
|
24
24
|
this.error = false;
|
|
25
25
|
this.prefix = null;
|
|
26
|
+
this.passwordHiddenIcon = FtIcons.EYE_SLASH;
|
|
27
|
+
this.passwordRevealedIcon = FtIcons.EYE;
|
|
26
28
|
this.filterSuggestions = false;
|
|
29
|
+
this.password = false;
|
|
27
30
|
this.focused = false;
|
|
31
|
+
this.hidePassword = true;
|
|
28
32
|
this.suggestionsOnTop = false;
|
|
29
33
|
this.hideSuggestions = false;
|
|
30
34
|
this.visibleSuggestions = [];
|
|
@@ -64,7 +68,8 @@ class FtTextField extends FtLitElement {
|
|
|
64
68
|
"ft-text-field--with-prefix": !!this.prefix,
|
|
65
69
|
"ft-text-field--hide-suggestions": this.visibleSuggestions.length === 0 || this.hideSuggestions,
|
|
66
70
|
"ft-text-field--raised-label": this.focused || this.value != "",
|
|
67
|
-
"ft-text-field--with-icon": !!this.icon
|
|
71
|
+
"ft-text-field--with-icon": !!this.icon,
|
|
72
|
+
"ft-text-field--with-password": this.password
|
|
68
73
|
};
|
|
69
74
|
return html `
|
|
70
75
|
<div class="${classMap(classes)}">
|
|
@@ -85,7 +90,7 @@ class FtTextField extends FtLitElement {
|
|
|
85
90
|
${this.prefix}
|
|
86
91
|
</ft-typography>
|
|
87
92
|
` : nothing}
|
|
88
|
-
<input type
|
|
93
|
+
<input type=${(this.password && this.hidePassword) ? "password" : "text"}
|
|
89
94
|
maxlength=${ifDefined(this.maxLength || undefined)}
|
|
90
95
|
aria-label="${this.label}"
|
|
91
96
|
class="ft-typography--body1 ft-text-field--input"
|
|
@@ -94,12 +99,7 @@ class FtTextField extends FtLitElement {
|
|
|
94
99
|
@click=${this.handleClick}
|
|
95
100
|
@keyup=${this.handleInput}
|
|
96
101
|
@focus=${this.onFocus}/>
|
|
97
|
-
${this.
|
|
98
|
-
<ft-icon class="ft-text-field--icon"
|
|
99
|
-
.variant=${this.iconVariant}
|
|
100
|
-
.value=${this.icon}
|
|
101
|
-
@click=${() => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }}></ft-icon>
|
|
102
|
-
` : nothing}
|
|
102
|
+
${(this.renderIcon())}
|
|
103
103
|
</div>
|
|
104
104
|
<div class="ft-text-field--suggestions ${this.suggestionsOnTop ? "ft-text-field--suggestions-on-top" : ""}"
|
|
105
105
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
@@ -114,6 +114,25 @@ class FtTextField extends FtLitElement {
|
|
|
114
114
|
</div>
|
|
115
115
|
`;
|
|
116
116
|
}
|
|
117
|
+
renderPasswordIcon() {
|
|
118
|
+
return html `
|
|
119
|
+
<ft-icon class="ft-text-field--icon"
|
|
120
|
+
.variant=${this.iconVariant}
|
|
121
|
+
.value=${(this.hidePassword ? this.passwordHiddenIcon : this.passwordRevealedIcon)}
|
|
122
|
+
@click=${() => this.togglePasswordVisibility()}></ft-icon>
|
|
123
|
+
`;
|
|
124
|
+
}
|
|
125
|
+
renderIcon() {
|
|
126
|
+
if (this.password) {
|
|
127
|
+
return this.renderPasswordIcon();
|
|
128
|
+
}
|
|
129
|
+
return this.icon ? html `
|
|
130
|
+
<ft-icon class="ft-text-field--icon"
|
|
131
|
+
.variant=${this.iconVariant}
|
|
132
|
+
.value=${this.icon}
|
|
133
|
+
@click=${() => { var _a; return (_a = this.input) === null || _a === void 0 ? void 0 : _a.focus(); }}></ft-icon>
|
|
134
|
+
` : nothing;
|
|
135
|
+
}
|
|
117
136
|
updated(props) {
|
|
118
137
|
super.updated(props);
|
|
119
138
|
if (props.has("value") || props.has("filterSuggestions")) {
|
|
@@ -201,6 +220,9 @@ class FtTextField extends FtLitElement {
|
|
|
201
220
|
this.setValue(((_b = this.input) === null || _b === void 0 ? void 0 : _b.value) || "", true);
|
|
202
221
|
}
|
|
203
222
|
}
|
|
223
|
+
togglePasswordVisibility() {
|
|
224
|
+
this.hidePassword = !this.hidePassword;
|
|
225
|
+
}
|
|
204
226
|
}
|
|
205
227
|
FtTextField.elementDefinitions = {
|
|
206
228
|
"ft-input-label": FtInputLabel,
|
|
@@ -240,6 +262,12 @@ __decorate([
|
|
|
240
262
|
__decorate([
|
|
241
263
|
property()
|
|
242
264
|
], FtTextField.prototype, "icon", void 0);
|
|
265
|
+
__decorate([
|
|
266
|
+
property()
|
|
267
|
+
], FtTextField.prototype, "passwordHiddenIcon", void 0);
|
|
268
|
+
__decorate([
|
|
269
|
+
property()
|
|
270
|
+
], FtTextField.prototype, "passwordRevealedIcon", void 0);
|
|
243
271
|
__decorate([
|
|
244
272
|
property()
|
|
245
273
|
], FtTextField.prototype, "iconVariant", void 0);
|
|
@@ -249,9 +277,15 @@ __decorate([
|
|
|
249
277
|
__decorate([
|
|
250
278
|
property({ type: Number })
|
|
251
279
|
], FtTextField.prototype, "maxLength", void 0);
|
|
280
|
+
__decorate([
|
|
281
|
+
property({ type: Boolean })
|
|
282
|
+
], FtTextField.prototype, "password", void 0);
|
|
252
283
|
__decorate([
|
|
253
284
|
state()
|
|
254
285
|
], FtTextField.prototype, "focused", void 0);
|
|
286
|
+
__decorate([
|
|
287
|
+
state()
|
|
288
|
+
], FtTextField.prototype, "hidePassword", void 0);
|
|
255
289
|
__decorate([
|
|
256
290
|
state()
|
|
257
291
|
], FtTextField.prototype, "suggestionsOnTop", void 0);
|
|
@@ -4,18 +4,18 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var n;const r=window,a=r.trustedTypes,f=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,p="$lit$",h=`lit$${(Math.random()+"").slice(9)}$`,d="?"+h,c=`<${d}>`,
|
|
7
|
+
var n;const r=window,a=r.trustedTypes,f=a?a.createPolicy("lit-html",{createHTML:t=>t}):void 0,p="$lit$",h=`lit$${(Math.random()+"").slice(9)}$`,d="?"+h,c=`<${d}>`,x=document,u=()=>x.createComment(""),g=t=>null===t||"object"!=typeof t&&"function"!=typeof t,y=Array.isArray,v="[ \t\n\f\r]",b=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,m=/-->/g,$=/>/g,w=RegExp(`>|${v}(?:([^\\s"'>=/]+)(${v}*=${v}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),k=/'/g,z=/"/g,S=/^(?:script|style|textarea|title)$/i,E=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),I=Symbol.for("lit-noChange"),N=Symbol.for("lit-nothing"),j=new WeakMap,O=x.createTreeWalker(x,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,a,f=-1,d=0;for(;d<i.length&&(n.lastIndex=d,a=n.exec(i),null!==a);)d=n.lastIndex,n===b?"!--"===a[1]?n=m:void 0!==a[1]?n=$:void 0!==a[2]?(S.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=w):void 0!==a[3]&&(n=w):n===w?">"===a[0]?(n=null!=s?s:b,f=-1):void 0===a[1]?f=-2:(f=n.lastIndex-a[2].length,r=a[1],n=void 0===a[3]?w:'"'===a[3]?z:k):n===z||n===k?n=w:n===m||n===$?n=b:(n=w,s=void 0);const x=n===w&&t[e+1].startsWith("/>")?" ":"";l+=n===b?i+c:f>=0?(o.push(r),i.slice(0,f)+p+i.slice(f)+h+x):i+h+(-2===f?(o.push(void 0),e):x)}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 A{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let s=0,l=0;const n=t.length-1,r=this.parts,[f,c]=C(t,e);if(this.el=A.createElement(f,i),O.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=O.nextNode())&&r.length<n;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(p)||e.startsWith(h)){const i=c[l++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+p).split(h),e=/([.?@])?(.*)/.exec(i);r.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?U:"?"===e[1]?R:"@"===e[1]?T:_})}else r.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(S.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],u()),O.nextNode(),r.push({type:2,index:++s});o.append(t[e],u())}}}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=x.createElement("template");return i.innerHTML=t,i}}function B(t,e,i=t,o){var s,l,n,r;if(e===I)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const f=g(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==f&&(null===(l=null==a?void 0:a._$AO)||void 0===l||l.call(a,!1),void 0===f?a=void 0:(a=new f(t),a._$AT(t,i,o)),void 0!==o?(null!==(n=(r=i)._$Co)&&void 0!==n?n:r._$Co=[])[o]=a:i._$Cl=a),void 0!==a&&(e=B(t,a._$AS(t,e.values),a,o)),e}class D{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(i,!0);O.currentNode=s;let l=O.nextNode(),n=0,r=0,a=o[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new Z(l,l.nextSibling,this,t):1===a.type?e=new a.ctor(l,a.name,a.strings,this,t):6===a.type&&(e=new W(l,this,t)),this._$AV.push(e),a=o[++r]}n!==(null==a?void 0:a.index)&&(l=O.nextNode(),n++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var s;this.type=2,this._$AH=N,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=B(this,t,e),g(t)?t===N||null==t||""===t?(this._$AH!==N&&this._$AR(),this._$AH=N):t!==this._$AH&&t!==I&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>y(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==N&&g(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=A.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new D(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=j.get(t.strings);return void 0===e&&j.set(t.strings,e=new A(t)),e}T(t){y(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new Z(this.k(u()),this.k(u()),this,this.options)):i=e[o],i._$AI(s),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class _{constructor(t,e,i,o,s){this.type=1,this._$AH=N,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=N}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=B(this,t,e,0),l=!g(t)||t!==this._$AH&&t!==I,l&&(this._$AH=t);else{const o=t;let n,r;for(t=s[0],n=0;n<s.length-1;n++)r=B(this,o[i+n],e,n),r===I&&(r=this._$AH[n]),l||(l=!g(r)||r!==this._$AH[n]),r===N?t=N:t!==N&&(t+=(null!=r?r:"")+s[n+1]),this._$AH[n]=r}l&&!o&&this.j(t)}j(t){t===N?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class U extends _{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===N?void 0:t}}const M=a?a.emptyScript:"";class R extends _{constructor(){super(...arguments),this.type=4}j(t){t&&t!==N?this.element.setAttribute(this.name,M):this.element.removeAttribute(this.name)}}class T 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=B(this,t,e,0))&&void 0!==i?i:N)===I)return;const o=this._$AH,s=t===N&&o!==N||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,l=t!==N&&(o===N||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 W{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){B(this,t)}}const K=r.litHtmlPolyfillSupport;null==K||K(A,Z),(null!==(n=r.litHtmlVersions)&&void 0!==n?n:r.litHtmlVersions=[]).push("2.7.3");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2018 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const
|
|
13
|
+
const V=Symbol.for(""),F=t=>{if((null==t?void 0:t.r)===V)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:V}),H=new Map,G=(t=>(e,...i)=>{const o=i.length;let s,l;const n=[],r=[];let a,f=0,p=!1;for(;f<o;){for(a=e[f];f<o&&void 0!==(l=i[f],s=F(l));)a+=s+e[++f],p=!0;f!==o&&r.push(l),n.push(a),f++}if(f===o&&n.push(e[o]),p){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)})(E);
|
|
14
14
|
/**
|
|
15
15
|
* @license
|
|
16
16
|
* Copyright 2020 Google LLC
|
|
17
17
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
18
|
-
*/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"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),it=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",L),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),
|
|
18
|
+
*/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"),tt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",Y.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",Y.letterSpacing,"0.15px"),it=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",Y.lineHeight,"1.2"),ot=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",Y.textTransform,"inherit"),st=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",L),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",Y.fontSize,"14px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",Y.fontWeight,"normal"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",Y.letterSpacing,"0.105px"),at=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",Y.lineHeight,"1.7"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",Y.textTransform,"inherit"),pt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",X),ht=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",Y.fontSize,"16px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",Y.fontWeight,"600"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",Y.letterSpacing,"0.144px"),xt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",Y.lineHeight,"1.5"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",Y.textTransform,"inherit"),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",X),yt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",Y.fontSize,"14px"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",Y.fontWeight,"normal"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",Y.letterSpacing,"0.098px"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",Y.lineHeight,"1.7"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",Y.textTransform,"inherit"),wt={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")},kt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",X),zt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",Y.fontSize,"14px"),St=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",Y.fontWeight,"normal"),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",Y.letterSpacing,"0.252px"),It=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",Y.lineHeight,"1.4"),Nt=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")},Ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",X),Ct=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",Y.fontSize,"10px"),At=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",Y.fontWeight,"normal"),Bt=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"),Zt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",Y.textTransform,"inherit"),_t=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",X),Ut=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",Y.fontSize,"10px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",Y.fontWeight,"normal"),Rt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",Y.letterSpacing,"1.5px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",Y.lineHeight,"1.6"),Wt=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",Y.textTransform,"uppercase"),Kt=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",X),Vt=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",Y.fontSize,"14px"),Ft=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",Y.fontWeight,"600"),Pt=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"),Gt=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",Y.textTransform,"uppercase"),qt=i.css`
|
|
19
19
|
.ft-typography--title {
|
|
20
20
|
font-family: ${J};
|
|
21
21
|
font-size: ${Q};
|
|
@@ -39,15 +39,15 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
39
39
|
font-size: ${ht};
|
|
40
40
|
font-weight: ${dt};
|
|
41
41
|
letter-spacing: ${ct};
|
|
42
|
-
line-height: ${
|
|
43
|
-
text-transform: ${
|
|
42
|
+
line-height: ${xt};
|
|
43
|
+
text-transform: ${ut};
|
|
44
44
|
}
|
|
45
45
|
`,Yt=i.css`
|
|
46
46
|
.ft-typography--subtitle2 {
|
|
47
47
|
font-family: ${gt};
|
|
48
48
|
font-size: ${yt};
|
|
49
|
-
font-weight: ${
|
|
50
|
-
letter-spacing: ${
|
|
49
|
+
font-weight: ${vt};
|
|
50
|
+
letter-spacing: ${bt};
|
|
51
51
|
line-height: ${mt};
|
|
52
52
|
text-transform: ${$t};
|
|
53
53
|
}
|
|
@@ -67,25 +67,25 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
67
67
|
font-size: ${zt};
|
|
68
68
|
font-weight: ${St};
|
|
69
69
|
letter-spacing: ${Et};
|
|
70
|
-
line-height: ${
|
|
71
|
-
text-transform: ${
|
|
70
|
+
line-height: ${It};
|
|
71
|
+
text-transform: ${Nt};
|
|
72
72
|
}
|
|
73
73
|
`,te=i.css`
|
|
74
74
|
.ft-typography--caption {
|
|
75
|
-
font-family: ${
|
|
76
|
-
font-size: ${
|
|
77
|
-
font-weight: ${
|
|
78
|
-
letter-spacing: ${
|
|
79
|
-
line-height: ${
|
|
80
|
-
text-transform: ${
|
|
75
|
+
font-family: ${jt.fontFamily};
|
|
76
|
+
font-size: ${jt.fontSize};
|
|
77
|
+
font-weight: ${jt.fontWeight};
|
|
78
|
+
letter-spacing: ${jt.letterSpacing};
|
|
79
|
+
line-height: ${jt.lineHeight};
|
|
80
|
+
text-transform: ${jt.textTransform};
|
|
81
81
|
}
|
|
82
82
|
`,ee=i.css`
|
|
83
83
|
.ft-typography--breadcrumb {
|
|
84
84
|
font-family: ${Ot};
|
|
85
85
|
font-size: ${Ct};
|
|
86
86
|
font-weight: ${At};
|
|
87
|
-
letter-spacing: ${
|
|
88
|
-
line-height: ${
|
|
87
|
+
letter-spacing: ${Bt};
|
|
88
|
+
line-height: ${Dt};
|
|
89
89
|
text-transform: ${Zt};
|
|
90
90
|
}
|
|
91
91
|
`,ie=i.css`
|
|
@@ -100,22 +100,22 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
100
100
|
`,oe=i.css`
|
|
101
101
|
.ft-typography--button {
|
|
102
102
|
font-family: ${Kt};
|
|
103
|
-
font-size: ${
|
|
104
|
-
font-weight: ${
|
|
105
|
-
letter-spacing: ${
|
|
103
|
+
font-size: ${Vt};
|
|
104
|
+
font-weight: ${Ft};
|
|
105
|
+
letter-spacing: ${Pt};
|
|
106
106
|
line-height: ${Ht};
|
|
107
|
-
text-transform: ${
|
|
107
|
+
text-transform: ${Gt};
|
|
108
108
|
}
|
|
109
109
|
`,se=i.css`
|
|
110
110
|
.ft-typography {
|
|
111
111
|
vertical-align: inherit;
|
|
112
112
|
}
|
|
113
|
-
`;var le=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class ne extends e.FtLitElement{constructor(){super(...arguments),this.variant=q.body1}render(){return this.element?
|
|
114
|
-
<${
|
|
113
|
+
`;var le=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class ne extends e.FtLitElement{constructor(){super(...arguments),this.variant=q.body1}render(){return this.element?G`
|
|
114
|
+
<${P(this.element)}
|
|
115
115
|
class="ft-typography ft-typography--${this.variant}">
|
|
116
116
|
<slot></slot>
|
|
117
|
-
</${
|
|
118
|
-
`:
|
|
117
|
+
</${P(this.element)}>
|
|
118
|
+
`:G`
|
|
119
119
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
120
120
|
`}}ne.styles=[qt,Lt,Xt,Yt,Jt,Qt,te,ee,ie,oe,se],le([o.property()],ne.prototype,"element",void 0),le([o.property()],ne.prototype,"variant",void 0),e.customElement("ft-typography")(ne);const re={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")},ae=i.css`
|
|
121
121
|
.ft-input-label {
|
|
@@ -168,8 +168,8 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
168
168
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
169
169
|
max-width: calc(${re.labelMaxWidth} - 2 * (${re.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
170
170
|
text-overflow: ellipsis;
|
|
171
|
-
${e.setVariable(
|
|
172
|
-
${e.setVariable(
|
|
171
|
+
${e.setVariable(jt.fontSize,re.fontSize)};
|
|
172
|
+
${e.setVariable(jt.lineHeight,re.fontSize)};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -201,8 +201,8 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
201
201
|
}
|
|
202
202
|
|
|
203
203
|
.ft-input-label--raised .ft-input-label--text {
|
|
204
|
-
${e.setVariable(
|
|
205
|
-
${e.setVariable(
|
|
204
|
+
${e.setVariable(jt.fontSize,re.raisedFontSize)};
|
|
205
|
+
${e.setVariable(jt.lineHeight,re.raisedFontSize)};
|
|
206
206
|
}
|
|
207
207
|
|
|
208
208
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -248,7 +248,7 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
248
248
|
</div>
|
|
249
249
|
`:null}
|
|
250
250
|
</div>
|
|
251
|
-
`}}pe.elementDefinitions={},pe.styles=[te,ae],fe([o.property({type:String})],pe.prototype,"text",void 0),fe([o.property({type:Boolean})],pe.prototype,"raised",void 0),fe([o.property({type:Boolean})],pe.prototype,"outlined",void 0),fe([o.property({type:Boolean})],pe.prototype,"disabled",void 0),fe([o.property({type:Boolean})],pe.prototype,"error",void 0),e.customElement("ft-input-label")(pe);const he=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),de={color:he,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",he),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"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),
|
|
251
|
+
`}}pe.elementDefinitions={},pe.styles=[te,ae],fe([o.property({type:String})],pe.prototype,"text",void 0),fe([o.property({type:Boolean})],pe.prototype,"raised",void 0),fe([o.property({type:Boolean})],pe.prototype,"outlined",void 0),fe([o.property({type:Boolean})],pe.prototype,"disabled",void 0),fe([o.property({type:Boolean})],pe.prototype,"error",void 0),e.customElement("ft-input-label")(pe);const he=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorContent),de={color:he,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color",he),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"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","SIZE","0px")},ce=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorPrimary),xe=ce,ue=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ce),ge=e.FtCssVariableFactory.extend("--ft-ripple-color",e.designSystemVariables.colorSecondary),ye=ge,ve=e.FtCssVariableFactory.extend("--ft-ripple-background-color",ge),be=i.css`
|
|
252
252
|
:host {
|
|
253
253
|
display: contents;
|
|
254
254
|
}
|
|
@@ -279,7 +279,7 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
279
279
|
}
|
|
280
280
|
|
|
281
281
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
282
|
-
background-color: ${
|
|
282
|
+
background-color: ${ve};
|
|
283
283
|
}
|
|
284
284
|
|
|
285
285
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
@@ -287,11 +287,11 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
287
287
|
}
|
|
288
288
|
|
|
289
289
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
290
|
-
background-color: ${
|
|
290
|
+
background-color: ${ue};
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
294
|
-
background-color: ${
|
|
294
|
+
background-color: ${xe};
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.ft-ripple .ft-ripple--background {
|
|
@@ -355,7 +355,7 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
355
355
|
<div class="ft-ripple--background"></div>
|
|
356
356
|
<div class="ft-ripple--effect"></div>
|
|
357
357
|
</div>
|
|
358
|
-
`}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(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const 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,this.target=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()}}ke.elementDefinitions={},ke.styles=ve,we([o.property({type:Boolean})],ke.prototype,"primary",void 0),we([o.property({type:Boolean})],ke.prototype,"secondary",void 0),we([o.property({type:Boolean})],ke.prototype,"unbounded",void 0),we([o.property({type:Boolean})],ke.prototype,"activated",void 0),we([o.property({type:Boolean})],ke.prototype,"selected",void 0),we([o.property({type:Boolean})],ke.prototype,"disabled",void 0),we([o.state()],ke.prototype,"hovered",void 0),we([o.state()],ke.prototype,"focused",void 0),we([o.state()],ke.prototype,"pressed",void 0),we([o.state()],ke.prototype,"rippling",void 0),we([o.state()],ke.prototype,"rippleSize",void 0),we([o.state()],ke.prototype,"originX",void 0),we([o.state()],ke.prototype,"originY",void 0),we([o.query(".ft-ripple")],ke.prototype,"ripple",void 0),we([o.query(".ft-ripple--effect")],ke.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ke),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT=""}(me||(me={})),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=""}($e||($e={})),new Map([...["abw"].map((t=>[t,$e.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,$e.AUDIO])),...["avi"].map((t=>[t,$e.AVI])),...["chm","xhs"].map((t=>[t,$e.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,$e.CODE])),...["csv"].map((t=>[t,$e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$e.DITA])),...["epub"].map((t=>[t,$e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$e.EXCEL])),...["flac"].map((t=>[t,$e.FLAC])),...["gif"].map((t=>[t,$e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$e.GZIP])),...["html","htm","xhtml"].map((t=>[t,$e.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,$e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$e.JPEG])),...["json"].map((t=>[t,$e.JSON])),...["m4a","m4p"].map((t=>[t,$e.M4A])),...["mov","qt"].map((t=>[t,$e.MOV])),...["mp3"].map((t=>[t,$e.MP3])),...["mp4","m4v"].map((t=>[t,$e.MP4])),...["ogg","oga"].map((t=>[t,$e.OGG])),...["pdf","ps"].map((t=>[t,$e.PDF])),...["png"].map((t=>[t,$e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$e.POWERPOINT])),...["rar"].map((t=>[t,$e.RAR])),...["stp"].map((t=>[t,$e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$e.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,$e.VIDEO])),...["wav"].map((t=>[t,$e.WAV])),...["wma"].map((t=>[t,$e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$e.WORD])),...["xml","xsl","rdf"].map((t=>[t,$e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$e.YAML])),...["zip"].map((t=>[t,$e.ZIP]))]);const ze=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Se=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ee=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ne=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),je=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),Ie=i.css`
|
|
358
|
+
`}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(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:i),this.setRippleSize()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const 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,this.target=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()}}ke.elementDefinitions={},ke.styles=be,we([o.property({type:Boolean})],ke.prototype,"primary",void 0),we([o.property({type:Boolean})],ke.prototype,"secondary",void 0),we([o.property({type:Boolean})],ke.prototype,"unbounded",void 0),we([o.property({type:Boolean})],ke.prototype,"activated",void 0),we([o.property({type:Boolean})],ke.prototype,"selected",void 0),we([o.property({type:Boolean})],ke.prototype,"disabled",void 0),we([o.state()],ke.prototype,"hovered",void 0),we([o.state()],ke.prototype,"focused",void 0),we([o.state()],ke.prototype,"pressed",void 0),we([o.state()],ke.prototype,"rippling",void 0),we([o.state()],ke.prototype,"rippleSize",void 0),we([o.state()],ke.prototype,"originX",void 0),we([o.state()],ke.prototype,"originY",void 0),we([o.query(".ft-ripple")],ke.prototype,"ripple",void 0),we([o.query(".ft-ripple--effect")],ke.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(ke),function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(me||(me={})),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=""}($e||($e={})),new Map([...["abw"].map((t=>[t,$e.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,$e.AUDIO])),...["avi"].map((t=>[t,$e.AVI])),...["chm","xhs"].map((t=>[t,$e.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,$e.CODE])),...["csv"].map((t=>[t,$e.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,$e.DITA])),...["epub"].map((t=>[t,$e.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,$e.EXCEL])),...["flac"].map((t=>[t,$e.FLAC])),...["gif"].map((t=>[t,$e.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,$e.GZIP])),...["html","htm","xhtml"].map((t=>[t,$e.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,$e.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,$e.JPEG])),...["json"].map((t=>[t,$e.JSON])),...["m4a","m4p"].map((t=>[t,$e.M4A])),...["mov","qt"].map((t=>[t,$e.MOV])),...["mp3"].map((t=>[t,$e.MP3])),...["mp4","m4v"].map((t=>[t,$e.MP4])),...["ogg","oga"].map((t=>[t,$e.OGG])),...["pdf","ps"].map((t=>[t,$e.PDF])),...["png"].map((t=>[t,$e.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,$e.POWERPOINT])),...["rar"].map((t=>[t,$e.RAR])),...["stp"].map((t=>[t,$e.STP])),...["txt","rtf","md","mdown"].map((t=>[t,$e.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,$e.VIDEO])),...["wav"].map((t=>[t,$e.WAV])),...["wma"].map((t=>[t,$e.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,$e.WORD])),...["xml","xsl","rdf"].map((t=>[t,$e.XML])),...["yaml","yml","x-yaml"].map((t=>[t,$e.YAML])),...["zip"].map((t=>[t,$e.ZIP]))]);const ze=e.FtCssVariableFactory.create("--ft-icon-font-size","SIZE","24px"),Se=e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-icons")),Ee=e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","ft-mime")),Ie=e.FtCssVariableFactory.extend("--ft-icon-material-font-family",e.FtCssVariableFactory.create("--ft-icon-font-family","UNKNOWN","Material Icons")),Ne=e.FtCssVariableFactory.create("--ft-icon-vertical-align","UNKNOWN","unset"),je=i.css`
|
|
359
359
|
:host, i.ft-icon {
|
|
360
360
|
display: inline-flex;
|
|
361
361
|
align-items: center;
|
|
@@ -382,7 +382,7 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
382
382
|
text-rendering: auto;
|
|
383
383
|
-webkit-font-smoothing: antialiased;
|
|
384
384
|
-moz-osx-font-smoothing: grayscale;
|
|
385
|
-
vertical-align: ${
|
|
385
|
+
vertical-align: ${Ne};
|
|
386
386
|
}
|
|
387
387
|
|
|
388
388
|
i.ft-icon.ft-icon--fluid-topics {
|
|
@@ -401,14 +401,14 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
401
401
|
}
|
|
402
402
|
|
|
403
403
|
.ft-icon--material {
|
|
404
|
-
font-family: ${
|
|
404
|
+
font-family: ${Ie}, "Material Icons", sans-serif;
|
|
405
405
|
}
|
|
406
406
|
`;var Oe;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Oe||(Oe={}));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 Ae extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(Oe).includes(this.variant)?this.variant:Oe.fluid_topics,e=t!==Oe.material||!!this.value;return i.html`
|
|
407
407
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
408
408
|
${l.unsafeHTML(this.resolvedIcon)}
|
|
409
409
|
<slot ?hidden=${e}></slot>
|
|
410
410
|
</i>
|
|
411
|
-
`}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 Oe.file_format:this.resolvedIcon=null!==(t=$e[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Oe.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=me[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ae.elementDefinitions={},Ae.styles=
|
|
411
|
+
`}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 Oe.file_format:this.resolvedIcon=null!==(t=$e[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Oe.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=me[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ae.elementDefinitions={},Ae.styles=je,Ce([o.property()],Ae.prototype,"variant",void 0),Ce([o.property()],Ae.prototype,"value",void 0),Ce([o.state()],Ae.prototype,"resolvedIcon",void 0),Ce([o.query("slot")],Ae.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Ae);const Be={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","SIZE","300px")},De=i.css`
|
|
412
412
|
*:focus {
|
|
413
413
|
outline: none;
|
|
414
414
|
}
|
|
@@ -421,16 +421,16 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
421
421
|
}
|
|
422
422
|
|
|
423
423
|
ft-input-label {
|
|
424
|
-
${e.setVariable(re.fontSize,
|
|
425
|
-
${e.setVariable(re.raisedFontSize,
|
|
426
|
-
${e.setVariable(re.verticalSpacing,
|
|
427
|
-
${e.setVariable(re.horizontalSpacing,
|
|
424
|
+
${e.setVariable(re.fontSize,Be.fontSize)};
|
|
425
|
+
${e.setVariable(re.raisedFontSize,Be.labelSize)};
|
|
426
|
+
${e.setVariable(re.verticalSpacing,Be.verticalSpacing)};
|
|
427
|
+
${e.setVariable(re.horizontalSpacing,Be.horizontalSpacing)};
|
|
428
428
|
}
|
|
429
429
|
|
|
430
430
|
.ft-text-field--main-panel {
|
|
431
431
|
position: relative;
|
|
432
432
|
display: flex;
|
|
433
|
-
height: calc(4 * ${
|
|
433
|
+
height: calc(4 * ${Be.verticalSpacing} + ${Be.labelSize} + ${Be.fontSize});
|
|
434
434
|
}
|
|
435
435
|
|
|
436
436
|
.ft-text-field--input-panel {
|
|
@@ -439,10 +439,10 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
439
439
|
display: flex;
|
|
440
440
|
align-items: center;
|
|
441
441
|
overflow: hidden;
|
|
442
|
-
padding: 0 ${
|
|
442
|
+
padding: 0 ${Be.horizontalSpacing};
|
|
443
443
|
|
|
444
|
-
${e.setVariable(wt.fontSize,
|
|
445
|
-
${e.setVariable(wt.lineHeight,
|
|
444
|
+
${e.setVariable(wt.fontSize,Be.fontSize)};
|
|
445
|
+
${e.setVariable(wt.lineHeight,Be.fontSize)};
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
.ft-text-field--input-panel ft-ripple {
|
|
@@ -452,11 +452,11 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
452
452
|
|
|
453
453
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
454
454
|
align-items: flex-end;
|
|
455
|
-
padding: 0 ${
|
|
455
|
+
padding: 0 ${Be.horizontalSpacing} ${Be.verticalSpacing} ${Be.horizontalSpacing};
|
|
456
456
|
}
|
|
457
457
|
|
|
458
458
|
.ft-text-field--prefix {
|
|
459
|
-
color: ${
|
|
459
|
+
color: ${Be.prefixColor};
|
|
460
460
|
margin-right: 2px;
|
|
461
461
|
flex-shrink: 1;
|
|
462
462
|
overflow: hidden;
|
|
@@ -475,15 +475,15 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
475
475
|
flex-shrink: 1;
|
|
476
476
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
477
477
|
|
|
478
|
-
color: ${
|
|
479
|
-
padding: calc(2 * ${
|
|
478
|
+
color: ${Be.colorOnSurface};
|
|
479
|
+
padding: calc(2 * ${Be.verticalSpacing}) 0;
|
|
480
480
|
border: none;
|
|
481
481
|
background: none;
|
|
482
482
|
}
|
|
483
483
|
|
|
484
484
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
485
485
|
padding-bottom: 0;
|
|
486
|
-
padding-top: calc(${
|
|
486
|
+
padding-top: calc(${Be.labelSize} + 2 * ${Be.verticalSpacing});
|
|
487
487
|
}
|
|
488
488
|
|
|
489
489
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -492,37 +492,37 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
.ft-text-field--disabled .ft-text-field--input {
|
|
495
|
-
color: ${
|
|
495
|
+
color: ${Be.colorOnSurfaceDisabled};
|
|
496
496
|
}
|
|
497
497
|
|
|
498
498
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
499
|
-
${e.setVariable(re.borderColor,
|
|
500
|
-
${e.setVariable(re.textColor,
|
|
499
|
+
${e.setVariable(re.borderColor,Be.colorPrimary)};
|
|
500
|
+
${e.setVariable(re.textColor,Be.colorPrimary)};
|
|
501
501
|
}
|
|
502
502
|
|
|
503
503
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
504
|
-
border-radius: ${
|
|
504
|
+
border-radius: ${Be.borderRadiusS} ${Be.borderRadiusS} 0 0;
|
|
505
505
|
}
|
|
506
506
|
|
|
507
507
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
508
|
-
border-radius: ${
|
|
508
|
+
border-radius: ${Be.borderRadiusS};
|
|
509
509
|
}
|
|
510
510
|
|
|
511
511
|
.ft-text-field--helper-text {
|
|
512
|
-
padding: 0 12px 0 ${
|
|
513
|
-
color: ${
|
|
512
|
+
padding: 0 12px 0 ${Be.horizontalSpacing};
|
|
513
|
+
color: ${Be.helperColor};
|
|
514
514
|
}
|
|
515
515
|
|
|
516
516
|
.ft-text-field--in-error .ft-text-field--input,
|
|
517
517
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
518
518
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
519
|
-
color: ${
|
|
519
|
+
color: ${Be.colorError};
|
|
520
520
|
}
|
|
521
521
|
|
|
522
522
|
.ft-text-field--icon {
|
|
523
523
|
align-self: center;
|
|
524
524
|
margin-left: 8px;
|
|
525
|
-
color: ${
|
|
525
|
+
color: ${Be.iconColor};
|
|
526
526
|
}
|
|
527
527
|
|
|
528
528
|
.ft-text-field--container {
|
|
@@ -535,13 +535,13 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
535
535
|
position: absolute;
|
|
536
536
|
left: 0;
|
|
537
537
|
right: 0;
|
|
538
|
-
z-index: ${
|
|
539
|
-
background: ${
|
|
540
|
-
border: 1px solid ${
|
|
541
|
-
border-radius: 0 0 ${
|
|
542
|
-
box-shadow: ${
|
|
538
|
+
z-index: ${Be.floatingZIndex};
|
|
539
|
+
background: ${Be.colorSurface};
|
|
540
|
+
border: 1px solid ${Be.colorOutline};
|
|
541
|
+
border-radius: 0 0 ${Be.borderRadiusS} ${Be.borderRadiusS};
|
|
542
|
+
box-shadow: ${Be.elevation02};
|
|
543
543
|
outline: none;
|
|
544
|
-
max-height: ${
|
|
544
|
+
max-height: ${Be.suggestSize};
|
|
545
545
|
overflow-y: auto;
|
|
546
546
|
}
|
|
547
547
|
|
|
@@ -560,7 +560,11 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
560
560
|
.ft-text-field--with-icon {
|
|
561
561
|
${e.setVariable(re.labelMaxWidth,`calc(100% - ${ze} - ${re.horizontalSpacing})`)};
|
|
562
562
|
}
|
|
563
|
-
|
|
563
|
+
|
|
564
|
+
.ft-text-field--with-password ft-icon:hover {
|
|
565
|
+
cursor: pointer;
|
|
566
|
+
}
|
|
567
|
+
`;var Ze=function(t,e,i,o){for(var s,l=arguments.length,n=l<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,r=t.length-1;r>=0;r--)(s=t[r])&&(n=(l<3?s(n):l>3?s(e,i,n):s(e,i))||n);return l>3&&n&&Object.defineProperty(e,i,n),n};class _e extends e.FtLitElement{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=me.EYE_SLASH,this.passwordRevealedIcon=me.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return i.html`
|
|
564
568
|
<div class="${s.classMap(t)}">
|
|
565
569
|
<div class="ft-text-field--main-panel"
|
|
566
570
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -579,8 +583,8 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
579
583
|
${this.prefix}
|
|
580
584
|
</ft-typography>
|
|
581
585
|
`:i.nothing}
|
|
582
|
-
<input type
|
|
583
|
-
maxlength=${(t=>null!=t?t:
|
|
586
|
+
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
587
|
+
maxlength=${(t=>null!=t?t:N)(this.maxLength||void 0)}
|
|
584
588
|
aria-label="${this.label}"
|
|
585
589
|
class="ft-typography--body1 ft-text-field--input"
|
|
586
590
|
?disabled=${this.disabled}
|
|
@@ -588,12 +592,7 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
588
592
|
@click=${this.handleClick}
|
|
589
593
|
@keyup=${this.handleInput}
|
|
590
594
|
@focus=${this.onFocus}/>
|
|
591
|
-
${this.
|
|
592
|
-
<ft-icon class="ft-text-field--icon"
|
|
593
|
-
.variant=${this.iconVariant}
|
|
594
|
-
.value=${this.icon}
|
|
595
|
-
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
596
|
-
`:i.nothing}
|
|
595
|
+
${this.renderIcon()}
|
|
597
596
|
</div>
|
|
598
597
|
<div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
|
|
599
598
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
@@ -606,7 +605,17 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
606
605
|
</ft-typography>
|
|
607
606
|
`:i.nothing}
|
|
608
607
|
</div>
|
|
609
|
-
`}
|
|
608
|
+
`}renderPasswordIcon(){return i.html`
|
|
609
|
+
<ft-icon class="ft-text-field--icon"
|
|
610
|
+
.variant=${this.iconVariant}
|
|
611
|
+
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
612
|
+
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
613
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?i.html`
|
|
614
|
+
<ft-icon class="ft-text-field--icon"
|
|
615
|
+
.variant=${this.iconVariant}
|
|
616
|
+
.value=${this.icon}
|
|
617
|
+
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
618
|
+
`:i.nothing}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}_e.elementDefinitions={"ft-input-label":pe,"ft-ripple":ke,"ft-typography":ne,"ft-icon":Ae},_e.styles=[Jt,De],Ze([o.property()],_e.prototype,"label",void 0),Ze([o.property({noAccessor:!0})],_e.prototype,"value",null),Ze([o.state()],_e.prototype,"dispatchedValue",void 0),Ze([o.property()],_e.prototype,"helper",void 0),Ze([o.property({type:Boolean})],_e.prototype,"outlined",void 0),Ze([o.property({type:Boolean})],_e.prototype,"disabled",void 0),Ze([o.property({type:Boolean})],_e.prototype,"error",void 0),Ze([o.property()],_e.prototype,"prefix",void 0),Ze([o.property()],_e.prototype,"icon",void 0),Ze([o.property()],_e.prototype,"passwordHiddenIcon",void 0),Ze([o.property()],_e.prototype,"passwordRevealedIcon",void 0),Ze([o.property()],_e.prototype,"iconVariant",void 0),Ze([o.property({type:Boolean})],_e.prototype,"filterSuggestions",void 0),Ze([o.property({type:Number})],_e.prototype,"maxLength",void 0),Ze([o.property({type:Boolean})],_e.prototype,"password",void 0),Ze([o.state()],_e.prototype,"focused",void 0),Ze([o.state()],_e.prototype,"hidePassword",void 0),Ze([o.state()],_e.prototype,"suggestionsOnTop",void 0),Ze([o.state()],_e.prototype,"hideSuggestions",void 0),Ze([o.state()],_e.prototype,"visibleSuggestions",void 0),Ze([o.query(".ft-text-field--main-panel")],_e.prototype,"mainPanel",void 0),Ze([o.query(".ft-text-field--input")],_e.prototype,"input",void 0),Ze([o.query(".ft-text-field--suggestions")],_e.prototype,"suggestionsContainer",void 0),Ze([o.queryAssignedElements({selector:"ft-text-field-suggestion"})],_e.prototype,"suggestions",void 0);const Ue=i.css`
|
|
610
619
|
.ft-text-field-suggestion {
|
|
611
620
|
position: relative;
|
|
612
621
|
padding: 8px 16px;
|
|
@@ -643,4 +652,4 @@ const F=Symbol.for(""),V=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
643
652
|
<slot></slot>
|
|
644
653
|
</ft-typography>
|
|
645
654
|
</div>
|
|
646
|
-
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Re(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Te.elementDefinitions={"ft-ripple":ke,"ft-typography":ne,"ft-icon":Ae},Te.styles=Ue,Me([o.property()],Te.prototype,"value",void 0),Me([o.query(".ft-text-field-suggestion")],Te.prototype,"container",void 0),Me([o.queryAssignedNodes()],Te.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(_e),e.customElement("ft-text-field-suggestion")(Te),t.FtTextField=_e,t.FtTextFieldCssVariables=
|
|
655
|
+
`}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new Re(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}Te.elementDefinitions={"ft-ripple":ke,"ft-typography":ne,"ft-icon":Ae},Te.styles=Ue,Me([o.property()],Te.prototype,"value",void 0),Me([o.query(".ft-text-field-suggestion")],Te.prototype,"container",void 0),Me([o.queryAssignedNodes()],Te.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(_e),e.customElement("ft-text-field-suggestion")(Te),t.FtTextField=_e,t.FtTextFieldCssVariables=Be,t.FtTextFieldSuggestion=Te,t.SuggestionSelectedEvent=Re,t.styles=De,t.suggestionStyles=Ue}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML);
|
|
@@ -55,19 +55,19 @@ const c=window,d=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"
|
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2017 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
|
-
*/;var
|
|
58
|
+
*/;var w;const $=window,O=$.trustedTypes,S=O?O.emptyScript:"",k=$.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?S: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}},N=(t,e)=>e!==t&&(e==e||t==t),C={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:N};let R=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e: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=C){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)||C}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),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(m(t))}else void 0!==t&&e.push(m(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 b(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=C){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:E).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:E;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||N)(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){}};
|
|
59
59
|
/**
|
|
60
60
|
* @license
|
|
61
61
|
* Copyright 2017 Google LLC
|
|
62
62
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
63
63
|
*/
|
|
64
|
-
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:R}),(null!==(
|
|
64
|
+
var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRootOptions={mode:"open"},null==k||k({ReactiveElement:R}),(null!==(w=$.reactiveElementVersions)&&void 0!==w?w:$.reactiveElementVersions=[]).push("1.6.1");const z=window,U=z.trustedTypes,j=U?U.createPolicy("lit-html",{createHTML:t=>t}):void 0,F="$lit$",A=`lit$${(Math.random()+"").slice(9)}$`,B="?"+A,D=`<${B}>`,P=document,I=()=>P.createComment(""),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,T=Array.isArray,_="[ \t\n\f\r]",W=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,H=/-->/g,K=/>/g,Z=RegExp(`>|${_}(?:([^\\s"'>=/]+)(${_}*=${_}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),V=/'/g,J=/"/g,q=/^(?:script|style|textarea|title)$/i,X=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Y=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),Q=new WeakMap,tt=P.createTreeWalker(P,129,null,!1),et=(t,e)=>{const i=t.length-1,o=[];let s,n=2===e?"<svg>":"",r=W;for(let e=0;e<i;e++){const i=t[e];let l,a,p=-1,f=0;for(;f<i.length&&(r.lastIndex=f,a=r.exec(i),null!==a);)f=r.lastIndex,r===W?"!--"===a[1]?r=H:void 0!==a[1]?r=K:void 0!==a[2]?(q.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=Z):void 0!==a[3]&&(r=Z):r===Z?">"===a[0]?(r=null!=s?s:W,p=-1):void 0===a[1]?p=-2:(p=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?Z:'"'===a[3]?J:V):r===J||r===V?r=Z:r===H||r===K?r=W:(r=Z,s=void 0);const h=r===Z&&t[e+1].startsWith("/>")?" ":"";n+=r===W?i+D:p>=0?(o.push(l),i.slice(0,p)+F+i.slice(p)+A+h):i+A+(-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!==j?j.createHTML(l):l,o]};class it{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]=et(t,e);if(this.el=it.createElement(a,i),tt.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=tt.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(F)||e.startsWith(A)){const i=p[n++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+F).split(A),e=/([.?@])?(.*)/.exec(i);l.push({type:1,index:s,name:e[2],strings:t,ctor:"."===e[1]?lt:"?"===e[1]?pt:"@"===e[1]?ft:rt})}else l.push({type:6,index:s})}for(const e of t)o.removeAttribute(e)}if(q.test(o.tagName)){const t=o.textContent.split(A),e=t.length-1;if(e>0){o.textContent=U?U.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],I()),tt.nextNode(),l.push({type:2,index:++s});o.append(t[e],I())}}}else if(8===o.nodeType)if(o.data===B)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(A,t+1));)l.push({type:7,index:s}),t+=A.length-1}s++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function ot(t,e,i=t,o){var s,n,r,l;if(e===Y)return e;let a=void 0!==o?null===(s=i._$Co)||void 0===s?void 0:s[o]:i._$Cl;const p=L(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=ot(t,a._$AS(t,e.values),a,o)),e}class st{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,s=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(i,!0);tt.currentNode=s;let n=tt.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let e;2===a.type?e=new nt(n,n.nextSibling,this,t):1===a.type?e=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(e=new ht(n,this,t)),this._$AV.push(e),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=tt.nextNode(),r++)}return s}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{constructor(t,e,i,o){var s;this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ot(this,t,e),L(t)?t===G||null==t||""===t?(this._$AH!==G&&this._$AR(),this._$AH=G):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>T(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==G&&L(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=it.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===s)this._$AH.v(i);else{const t=new st(s,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Q.get(t.strings);return void 0===e&&Q.set(t.strings,e=new it(t)),e}T(t){T(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const s of t)o===e.length?e.push(i=new nt(this.k(I()),this.k(I()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class rt{constructor(t,e,i,o,s){this.type=1,this._$AH=G,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=G}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=ot(this,t,e,0),n=!L(t)||t!==this._$AH&&t!==Y,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=ot(this,o[i+r],e,r),l===Y&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===G?t=G:t!==G&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class lt extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===G?void 0:t}}const at=U?U.emptyScript:"";class pt extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==G?this.element.setAttribute(this.name,at):this.element.removeAttribute(this.name)}}class ft extends rt{constructor(t,e,i,o,s){super(t,e,i,o,s),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ot(this,t,e,0))&&void 0!==i?i:G)===Y)return;const o=this._$AH,s=t===G&&o!==G||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==G&&(o===G||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 ht{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ot(this,t)}}const ct=z.litHtmlPolyfillSupport;null==ct||ct(it,nt),(null!==(M=z.litHtmlVersions)&&void 0!==M?M:z.litHtmlVersions=[]).push("2.7.3");
|
|
65
65
|
/**
|
|
66
66
|
* @license
|
|
67
67
|
* Copyright 2017 Google LLC
|
|
68
68
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
69
69
|
*/
|
|
70
|
-
var dt,ut;let xt=class extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new nt(e.insertBefore(P(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};xt.finalized=!0,xt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:xt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:xt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");class yt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=v`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>v`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=v`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>v`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=v`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>v`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function vt(t,e){return y(`${t.name}: ${e}`)}const bt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:yt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:yt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:yt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:yt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:yt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:yt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:yt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:yt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:yt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return b(i,t.elementStyles),i}}var $t,wt=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ot=Symbol("constructorPrototype"),St=Symbol("constructorName"),kt=Symbol("exportpartsDebouncer");class Et extends mt{constructor(){super(),this[$t]=new e(5),this[St]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[St]&&Object.setPrototypeOf(this,this[Ot])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[kt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const f=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}var Nt,Ct;$t=kt,wt([o()],Et.prototype,"exportpartsPrefix",void 0),wt([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}([])],Et.prototype,"exportpartsPrefixes",void 0),wt([o()],Et.prototype,"customStylesheet",void 0),v`
|
|
70
|
+
var dt,ut;let xt=class extends R{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var o,s;const n=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let r=n._$litPart$;if(void 0===r){const t=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:null;n._$litPart$=r=new nt(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}};xt.finalized=!0,xt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:xt});const gt=globalThis.litElementPolyfillSupport;null==gt||gt({LitElement:xt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.2");class yt{static create(t,e,i){let o=t=>y(null!=t?t:i),s=v`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>v`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[],s.lastResortDefaultValue=()=>i,s}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),s=v`var(${y(t)}, ${o(i)})`;return s.name=t,s.category=e.category,s.fallbackVariable=e,s.defaultValue=i,s.defaultCssValue=o,s.get=e=>v`var(${y(t)}, ${o(e)})`,s.breadcrumb=()=>[e.name,...e.breadcrumb()],s.lastResortDefaultValue=()=>i,s}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):y(null!=e?e:t.defaultValue),o=v`var(${y(t.name)}, ${i(t.defaultValue)})`;return o.name=t.name,o.category=t.category,o.fallbackVariable=t.fallbackVariable,o.defaultValue=t.defaultValue,o.context=e,o.defaultCssValue=i,o.get=e=>v`var(${y(t.name)}, ${i(e)})`,o.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],o.lastResortDefaultValue=()=>{var e,i;return null!==(e=t.defaultValue)&&void 0!==e?e:null===(i=t.fallbackVariable)||void 0===i?void 0:i.lastResortDefaultValue()},o}}function vt(t,e){return y(`${t.name}: ${e}`)}const bt={colorPrimary:yt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:yt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:yt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:yt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:yt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:yt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:yt.create("--ft-color-error","COLOR","#B00020"),colorOutline:yt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:yt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:yt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:yt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:yt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:yt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:yt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:yt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:yt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:yt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:yt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:yt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:yt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:yt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:yt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:yt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:yt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:yt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:yt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:yt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:yt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:yt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:yt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:yt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:yt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:yt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:yt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:yt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:yt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:yt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:yt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:yt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:yt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:yt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:yt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:yt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:yt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:yt.create("--ft-elevation-00","UNKNOWN","0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0), 0px 0px 0px 0px rgba(0, 0, 0, 0)"),elevation01:yt.create("--ft-elevation-01","UNKNOWN","0px 1px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 2px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation02:yt.create("--ft-elevation-02","UNKNOWN","0px 4px 10px 0px rgba(0, 0, 0, 0.06), 0px 2px 5px 0px rgba(0, 0, 0, 0.14), 0px 0px 1px 0px rgba(0, 0, 0, 0.06)"),elevation03:yt.create("--ft-elevation-03","UNKNOWN","0px 6px 13px 0px rgba(0, 0, 0, 0.06), 0px 3px 7px 0px rgba(0, 0, 0, 0.14), 0px 1px 2px 0px rgba(0, 0, 0, 0.06)"),elevation04:yt.create("--ft-elevation-04","UNKNOWN","0px 8px 16px 0px rgba(0, 0, 0, 0.06), 0px 4px 9px 0px rgba(0, 0, 0, 0.14), 0px 2px 3px 0px rgba(0, 0, 0, 0.06)"),elevation06:yt.create("--ft-elevation-06","UNKNOWN","0px 12px 22px 0px rgba(0, 0, 0, 0.06), 0px 6px 13px 0px rgba(0, 0, 0, 0.14), 0px 4px 5px 0px rgba(0, 0, 0, 0.06)"),elevation08:yt.create("--ft-elevation-08","UNKNOWN","0px 16px 28px 0px rgba(0, 0, 0, 0.06), 0px 8px 17px 0px rgba(0, 0, 0, 0.14), 0px 6px 7px 0px rgba(0, 0, 0, 0.06)"),elevation12:yt.create("--ft-elevation-12","UNKNOWN","0px 22px 40px 0px rgba(0, 0, 0, 0.06), 0px 12px 23px 0px rgba(0, 0, 0, 0.14), 0px 10px 11px 0px rgba(0, 0, 0, 0.06)"),elevation16:yt.create("--ft-elevation-16","UNKNOWN","0px 28px 52px 0px rgba(0, 0, 0, 0.06), 0px 16px 29px 0px rgba(0, 0, 0, 0.14), 0px 14px 15px 0px rgba(0, 0, 0, 0.06)"),elevation24:yt.create("--ft-elevation-24","UNKNOWN","0px 40px 76px 0px rgba(0, 0, 0, 0.06), 0px 24px 41px 0px rgba(0, 0, 0, 0.14), 0px 22px 23px 0px rgba(0, 0, 0, 0.06)"),borderRadiusS:yt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:yt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:yt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:yt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:yt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:yt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:yt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:yt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class mt extends xt{createRenderRoot(){const t=this.constructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,Object.entries(t.elementDefinitions).forEach((([e,i])=>t.registry.define(e,i))));const e={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(e);return b(i,t.elementStyles),i}}var wt,$t=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};const Ot=Symbol("constructorPrototype"),St=Symbol("constructorName"),kt=Symbol("exportpartsDebouncer");class Et extends mt{constructor(){super(),this[wt]=new e(5),this[St]=this.constructor.name,this[Ot]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[St]&&Object.setPrototypeOf(this,this[Ot])}updated(t){super.updated(t),setTimeout((()=>{this.contentAvailableCallback(t),this.scheduleExportpartsUpdate()}),0)}contentAvailableCallback(t){var e,i;if((null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll(".ft-lit-element--custom-stylesheet"))&&void 0!==i?i:[]).forEach((t=>t.remove())),this.customStylesheet){const t=document.createElement("style");t.classList.add("ft-lit-element--custom-stylesheet"),t.innerHTML=this.customStylesheet,this.shadowRoot.append(t)}}scheduleExportpartsUpdate(){this[kt].run((()=>{var t;(null===(t=this.exportpartsPrefix)||void 0===t?void 0:t.trim())?this.setExportpartsAttribute([this.exportpartsPrefix]):null!=this.exportpartsPrefixes&&this.exportpartsPrefixes.length>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)}))}setExportpartsAttribute(t){var e,i,o,s,n,r;const l=t=>null!=t&&t.trim().length>0,a=t.filter(l).map((t=>t.trim()));if(0===a.length)return void this.removeAttribute("exportparts");const p=new Set;for(let t of null!==(i=null===(e=this.shadowRoot)||void 0===e?void 0:e.querySelectorAll("[part],[exportparts]"))&&void 0!==i?i:[]){const e=null!==(s=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==s?s:[],i=null!==(r=null===(n=t.getAttribute("exportparts"))||void 0===n?void 0:n.split(",").map((t=>t.split(":")[1])))&&void 0!==r?r:[];new Array(...e,...i).filter(l).map((t=>t.trim())).forEach((t=>p.add(t)))}if(0===p.size)return void this.removeAttribute("exportparts");const f=[...p.values()].flatMap((t=>a.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...f].join(", "))}}var Nt,Ct;wt=kt,$t([o()],Et.prototype,"exportpartsPrefix",void 0),$t([function(t,e){const i=()=>JSON.parse(JSON.stringify(t));return o({type:Object,converter:{fromAttribute:t=>{if(null==t)return i();try{return JSON.parse(t)}catch{return i()}},toAttribute:t=>JSON.stringify(t)},hasChanged:(t,e)=>!f(t,e),...null!=e?e:{}})}([])],Et.prototype,"exportpartsPrefixes",void 0),$t([o()],Et.prototype,"customStylesheet",void 0),v`
|
|
71
71
|
.ft-no-text-select {
|
|
72
72
|
-webkit-touch-callout: none;
|
|
73
73
|
-webkit-user-select: none;
|
|
@@ -110,21 +110,21 @@ const Rt=1,Mt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
110
110
|
* @license
|
|
111
111
|
* Copyright 2018 Google LLC
|
|
112
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
|
-
*/const jt=zt(class extends Ut{constructor(t){var e;if(super(t),t.type!==Rt||"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.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Y}}),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,
|
|
113
|
+
*/const jt=zt(class extends Ut{constructor(t){var e;if(super(t),t.type!==Rt||"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.it){this.it=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.nt)||void 0===i?void 0:i.has(t))&&this.it.add(t);return this.render(e)}const s=t.element.classList;this.it.forEach((t=>{t in e||(s.remove(t),this.it.delete(t))}));for(const t in e){const i=!!e[t];i===this.it.has(t)||(null===(o=this.nt)||void 0===o?void 0:o.has(t))||(i?(s.add(t),this.it.add(t)):(s.remove(t),this.it.delete(t)))}return Y}}),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,f=!1;for(;p<o;){for(a=e[p];p<o&&void 0!==(n=i[p],s=At(n));)a+=s+e[++p],f=!0;p!==o&&l.push(n),r.push(a),p++}if(p===o&&r.push(e[o]),f){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)})(X);
|
|
114
114
|
/**
|
|
115
115
|
* @license
|
|
116
116
|
* Copyright 2018 Google LLC
|
|
117
117
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
118
|
-
*/var
|
|
118
|
+
*/var It;!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"}(It||(It={}));const Lt=yt.extend("--ft-typography-font-family",bt.titleFont),Tt=yt.extend("--ft-typography-font-family",bt.contentFont),_t={fontFamily:Tt,fontSize:yt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:yt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:yt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:yt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:yt.create("--ft-typography-text-transform","UNKNOWN","inherit")},Wt=yt.extend("--ft-typography-title-font-family",Lt),Ht=yt.extend("--ft-typography-title-font-size",_t.fontSize,"20px"),Kt=yt.extend("--ft-typography-title-font-weight",_t.fontWeight,"normal"),Zt=yt.extend("--ft-typography-title-letter-spacing",_t.letterSpacing,"0.15px"),Vt=yt.extend("--ft-typography-title-line-height",_t.lineHeight,"1.2"),Jt=yt.extend("--ft-typography-title-text-transform",_t.textTransform,"inherit"),qt=yt.extend("--ft-typography-title-dense-font-family",Lt),Xt=yt.extend("--ft-typography-title-dense-font-size",_t.fontSize,"14px"),Yt=yt.extend("--ft-typography-title-dense-font-weight",_t.fontWeight,"normal"),Gt=yt.extend("--ft-typography-title-dense-letter-spacing",_t.letterSpacing,"0.105px"),Qt=yt.extend("--ft-typography-title-dense-line-height",_t.lineHeight,"1.7"),te=yt.extend("--ft-typography-title-dense-text-transform",_t.textTransform,"inherit"),ee=yt.extend("--ft-typography-subtitle1-font-family",Tt),ie=yt.extend("--ft-typography-subtitle1-font-size",_t.fontSize,"16px"),oe=yt.extend("--ft-typography-subtitle1-font-weight",_t.fontWeight,"600"),se=yt.extend("--ft-typography-subtitle1-letter-spacing",_t.letterSpacing,"0.144px"),ne=yt.extend("--ft-typography-subtitle1-line-height",_t.lineHeight,"1.5"),re=yt.extend("--ft-typography-subtitle1-text-transform",_t.textTransform,"inherit"),le=yt.extend("--ft-typography-subtitle2-font-family",Tt),ae=yt.extend("--ft-typography-subtitle2-font-size",_t.fontSize,"14px"),pe=yt.extend("--ft-typography-subtitle2-font-weight",_t.fontWeight,"normal"),fe=yt.extend("--ft-typography-subtitle2-letter-spacing",_t.letterSpacing,"0.098px"),he=yt.extend("--ft-typography-subtitle2-line-height",_t.lineHeight,"1.7"),ce=yt.extend("--ft-typography-subtitle2-text-transform",_t.textTransform,"inherit"),de={fontFamily:yt.extend("--ft-typography-body1-font-family",Tt),fontSize:yt.extend("--ft-typography-body1-font-size",_t.fontSize,"16px"),fontWeight:yt.extend("--ft-typography-body1-font-weight",_t.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-body1-letter-spacing",_t.letterSpacing,"0.496px"),lineHeight:yt.extend("--ft-typography-body1-line-height",_t.lineHeight,"1.5"),textTransform:yt.extend("--ft-typography-body1-text-transform",_t.textTransform,"inherit")},ue=yt.extend("--ft-typography-body2-font-family",Tt),xe=yt.extend("--ft-typography-body2-font-size",_t.fontSize,"14px"),ge=yt.extend("--ft-typography-body2-font-weight",_t.fontWeight,"normal"),ye=yt.extend("--ft-typography-body2-letter-spacing",_t.letterSpacing,"0.252px"),ve=yt.extend("--ft-typography-body2-line-height",_t.lineHeight,"1.4"),be=yt.extend("--ft-typography-body2-text-transform",_t.textTransform,"inherit"),me={fontFamily:yt.extend("--ft-typography-caption-font-family",Tt),fontSize:yt.extend("--ft-typography-caption-font-size",_t.fontSize,"12px"),fontWeight:yt.extend("--ft-typography-caption-font-weight",_t.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-caption-letter-spacing",_t.letterSpacing,"0.396px"),lineHeight:yt.extend("--ft-typography-caption-line-height",_t.lineHeight,"1.33"),textTransform:yt.extend("--ft-typography-caption-text-transform",_t.textTransform,"inherit")},we=yt.extend("--ft-typography-breadcrumb-font-family",Tt),$e=yt.extend("--ft-typography-breadcrumb-font-size",_t.fontSize,"10px"),Oe=yt.extend("--ft-typography-breadcrumb-font-weight",_t.fontWeight,"normal"),Se=yt.extend("--ft-typography-breadcrumb-letter-spacing",_t.letterSpacing,"0.33px"),ke=yt.extend("--ft-typography-breadcrumb-line-height",_t.lineHeight,"1.6"),Ee=yt.extend("--ft-typography-breadcrumb-text-transform",_t.textTransform,"inherit"),Ne=yt.extend("--ft-typography-overline-font-family",Tt),Ce=yt.extend("--ft-typography-overline-font-size",_t.fontSize,"10px"),Re=yt.extend("--ft-typography-overline-font-weight",_t.fontWeight,"normal"),Me=yt.extend("--ft-typography-overline-letter-spacing",_t.letterSpacing,"1.5px"),ze=yt.extend("--ft-typography-overline-line-height",_t.lineHeight,"1.6"),Ue=yt.extend("--ft-typography-overline-text-transform",_t.textTransform,"uppercase"),je=yt.extend("--ft-typography-button-font-family",Tt),Fe=yt.extend("--ft-typography-button-font-size",_t.fontSize,"14px"),Ae=yt.extend("--ft-typography-button-font-weight",_t.fontWeight,"600"),Be=yt.extend("--ft-typography-button-letter-spacing",_t.letterSpacing,"1.246px"),De=yt.extend("--ft-typography-button-line-height",_t.lineHeight,"1.15"),Pe=yt.extend("--ft-typography-button-text-transform",_t.textTransform,"uppercase"),Ie=v`
|
|
119
119
|
.ft-typography--title {
|
|
120
120
|
font-family: ${Wt};
|
|
121
|
-
font-size: ${
|
|
122
|
-
font-weight: ${
|
|
121
|
+
font-size: ${Ht};
|
|
122
|
+
font-weight: ${Kt};
|
|
123
123
|
letter-spacing: ${Zt};
|
|
124
124
|
line-height: ${Vt};
|
|
125
125
|
text-transform: ${Jt};
|
|
126
126
|
}
|
|
127
|
-
`,
|
|
127
|
+
`,Le=v`
|
|
128
128
|
.ft-typography--title-dense {
|
|
129
129
|
font-family: ${qt};
|
|
130
130
|
font-size: ${Xt};
|
|
@@ -161,7 +161,7 @@ const Rt=1,Mt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
161
161
|
line-height: ${de.lineHeight};
|
|
162
162
|
text-transform: ${de.textTransform};
|
|
163
163
|
}
|
|
164
|
-
`,
|
|
164
|
+
`,He=v`
|
|
165
165
|
.ft-typography--body2 {
|
|
166
166
|
font-family: ${ue};
|
|
167
167
|
font-size: ${xe};
|
|
@@ -170,7 +170,7 @@ const Rt=1,Mt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
170
170
|
line-height: ${ve};
|
|
171
171
|
text-transform: ${be};
|
|
172
172
|
}
|
|
173
|
-
`,
|
|
173
|
+
`,Ke=v`
|
|
174
174
|
.ft-typography--caption {
|
|
175
175
|
font-family: ${me.fontFamily};
|
|
176
176
|
font-size: ${me.fontSize};
|
|
@@ -181,8 +181,8 @@ const Rt=1,Mt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
181
181
|
}
|
|
182
182
|
`,Ze=v`
|
|
183
183
|
.ft-typography--breadcrumb {
|
|
184
|
-
font-family: ${
|
|
185
|
-
font-size: ${
|
|
184
|
+
font-family: ${we};
|
|
185
|
+
font-size: ${$e};
|
|
186
186
|
font-weight: ${Oe};
|
|
187
187
|
letter-spacing: ${Se};
|
|
188
188
|
line-height: ${ke};
|
|
@@ -204,20 +204,20 @@ const Rt=1,Mt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
204
204
|
font-weight: ${Ae};
|
|
205
205
|
letter-spacing: ${Be};
|
|
206
206
|
line-height: ${De};
|
|
207
|
-
text-transform: ${
|
|
207
|
+
text-transform: ${Pe};
|
|
208
208
|
}
|
|
209
209
|
`,qe=v`
|
|
210
210
|
.ft-typography {
|
|
211
211
|
vertical-align: inherit;
|
|
212
212
|
}
|
|
213
|
-
`;var Xe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ye extends Et{constructor(){super(...arguments),this.variant=
|
|
213
|
+
`;var Xe=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ye extends Et{constructor(){super(...arguments),this.variant=It.body1}render(){return this.element?Pt`
|
|
214
214
|
<${Bt(this.element)}
|
|
215
215
|
class="ft-typography ft-typography--${this.variant}">
|
|
216
216
|
<slot></slot>
|
|
217
217
|
</${Bt(this.element)}>
|
|
218
|
-
`:
|
|
218
|
+
`:Pt`
|
|
219
219
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
220
|
-
`}}Ye.styles=[
|
|
220
|
+
`}}Ye.styles=[Ie,Le,Te,_e,We,He,Ke,Ze,Ve,Je,qe],Xe([o()],Ye.prototype,"element",void 0),Xe([o()],Ye.prototype,"variant",void 0),h("ft-typography")(Ye);const Ge={fontSize:yt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:yt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:yt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:yt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:yt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),labelMaxWidth:yt.create("--ft-input-label-max-width","SIZE","100%"),borderColor:yt.extend("--ft-input-label-border-color",bt.colorOutline),textColor:yt.extend("--ft-input-label-text-color",bt.colorOnSurfaceMedium),disabledTextColor:yt.extend("--ft-input-label-disabled-text-color",bt.colorOnSurfaceDisabled),colorSurface:yt.external(bt.colorSurface,"Design system"),borderRadiusS:yt.external(bt.borderRadiusS,"Design system"),colorError:yt.external(bt.colorError,"Design system")},Qe=v`
|
|
221
221
|
.ft-input-label {
|
|
222
222
|
position: absolute;
|
|
223
223
|
inset: 0;
|
|
@@ -348,7 +348,7 @@ const Rt=1,Mt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
348
348
|
</div>
|
|
349
349
|
`:null}
|
|
350
350
|
</div>
|
|
351
|
-
`}}ei.elementDefinitions={},ei.styles=[
|
|
351
|
+
`}}ei.elementDefinitions={},ei.styles=[Ke,Qe],ti([o({type:String})],ei.prototype,"text",void 0),ti([o({type:Boolean})],ei.prototype,"raised",void 0),ti([o({type:Boolean})],ei.prototype,"outlined",void 0),ti([o({type:Boolean})],ei.prototype,"disabled",void 0),ti([o({type:Boolean})],ei.prototype,"error",void 0),h("ft-input-label")(ei);const ii=yt.extend("--ft-ripple-color",bt.colorContent),oi={color:ii,backgroundColor:yt.extend("--ft-ripple-background-color",ii),opacityContentOnSurfacePressed:yt.external(bt.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:yt.external(bt.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:yt.external(bt.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:yt.external(bt.opacityContentOnSurfaceSelected,"Design system"),borderRadius:yt.create("--ft-ripple-border-radius","SIZE","0px")},si=yt.extend("--ft-ripple-color",bt.colorPrimary),ni=si,ri=yt.extend("--ft-ripple-background-color",si),li=yt.extend("--ft-ripple-color",bt.colorSecondary),ai=li,pi=yt.extend("--ft-ripple-background-color",li),fi=v`
|
|
352
352
|
:host {
|
|
353
353
|
display: contents;
|
|
354
354
|
}
|
|
@@ -461,7 +461,7 @@ const Rt=1,Mt=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class Ut{constructo
|
|
|
461
461
|
* Copyright 2017 Google LLC
|
|
462
462
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
463
463
|
*/
|
|
464
|
-
class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=zt(di);var xi,gi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT=""}(xi||(xi={})),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=""}(gi||(gi={})),new Map([...["abw"].map((t=>[t,gi.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,gi.AUDIO])),...["avi"].map((t=>[t,gi.AVI])),...["chm","xhs"].map((t=>[t,gi.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,gi.CODE])),...["csv"].map((t=>[t,gi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,gi.DITA])),...["epub"].map((t=>[t,gi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,gi.EXCEL])),...["flac"].map((t=>[t,gi.FLAC])),...["gif"].map((t=>[t,gi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,gi.GZIP])),...["html","htm","xhtml"].map((t=>[t,gi.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,gi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,gi.JPEG])),...["json"].map((t=>[t,gi.JSON])),...["m4a","m4p"].map((t=>[t,gi.M4A])),...["mov","qt"].map((t=>[t,gi.MOV])),...["mp3"].map((t=>[t,gi.MP3])),...["mp4","m4v"].map((t=>[t,gi.MP4])),...["ogg","oga"].map((t=>[t,gi.OGG])),...["pdf","ps"].map((t=>[t,gi.PDF])),...["png"].map((t=>[t,gi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,gi.POWERPOINT])),...["rar"].map((t=>[t,gi.RAR])),...["stp"].map((t=>[t,gi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,gi.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,gi.VIDEO])),...["wav"].map((t=>[t,gi.WAV])),...["wma"].map((t=>[t,gi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,gi.WORD])),...["xml","xsl","rdf"].map((t=>[t,gi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,gi.YAML])),...["zip"].map((t=>[t,gi.ZIP]))]);const yi=yt.create("--ft-icon-font-size","SIZE","24px"),vi=yt.extend("--ft-icon-fluid-topics-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),bi=yt.extend("--ft-icon-file-format-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),mi=yt.extend("--ft-icon-material-font-family",yt.create("--ft-icon-font-family","UNKNOWN","Material Icons"))
|
|
464
|
+
class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===G||null==t)return this.ft=void 0,this.et=t;if(t===Y)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.et)return this.ft;this.et=t;const e=[t];return e.raw=e,this.ft={_$litType$:this.constructor.resultType,strings:e,values:[]}}}di.directiveName="unsafeHTML",di.resultType=1;const ui=zt(di);var xi,gi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.LINE_CHART="",t.STACKED_CHART="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.EYE_SLASH="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.PIP="",t.PIP_WIDE="",t.EXPAND_WIDE="",t.X_MARK=""}(xi||(xi={})),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=""}(gi||(gi={})),new Map([...["abw"].map((t=>[t,gi.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,gi.AUDIO])),...["avi"].map((t=>[t,gi.AVI])),...["chm","xhs"].map((t=>[t,gi.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,gi.CODE])),...["csv"].map((t=>[t,gi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,gi.DITA])),...["epub"].map((t=>[t,gi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,gi.EXCEL])),...["flac"].map((t=>[t,gi.FLAC])),...["gif"].map((t=>[t,gi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,gi.GZIP])),...["html","htm","xhtml"].map((t=>[t,gi.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,gi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,gi.JPEG])),...["json"].map((t=>[t,gi.JSON])),...["m4a","m4p"].map((t=>[t,gi.M4A])),...["mov","qt"].map((t=>[t,gi.MOV])),...["mp3"].map((t=>[t,gi.MP3])),...["mp4","m4v"].map((t=>[t,gi.MP4])),...["ogg","oga"].map((t=>[t,gi.OGG])),...["pdf","ps"].map((t=>[t,gi.PDF])),...["png"].map((t=>[t,gi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,gi.POWERPOINT])),...["rar"].map((t=>[t,gi.RAR])),...["stp"].map((t=>[t,gi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,gi.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,gi.VIDEO])),...["wav"].map((t=>[t,gi.WAV])),...["wma"].map((t=>[t,gi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,gi.WORD])),...["xml","xsl","rdf"].map((t=>[t,gi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,gi.YAML])),...["zip"].map((t=>[t,gi.ZIP]))]);const yi=yt.create("--ft-icon-font-size","SIZE","24px"),vi=yt.extend("--ft-icon-fluid-topics-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),bi=yt.extend("--ft-icon-file-format-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),mi=yt.extend("--ft-icon-material-font-family",yt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),wi=yt.create("--ft-icon-vertical-align","UNKNOWN","unset"),$i=v`
|
|
465
465
|
:host, i.ft-icon {
|
|
466
466
|
display: inline-flex;
|
|
467
467
|
align-items: center;
|
|
@@ -488,7 +488,7 @@ class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
488
488
|
text-rendering: auto;
|
|
489
489
|
-webkit-font-smoothing: antialiased;
|
|
490
490
|
-moz-osx-font-smoothing: grayscale;
|
|
491
|
-
vertical-align: ${
|
|
491
|
+
vertical-align: ${wi};
|
|
492
492
|
}
|
|
493
493
|
|
|
494
494
|
i.ft-icon.ft-icon--fluid-topics {
|
|
@@ -514,7 +514,7 @@ class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
514
514
|
${ui(this.resolvedIcon)}
|
|
515
515
|
<slot ?hidden=${e}></slot>
|
|
516
516
|
</i>
|
|
517
|
-
`}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=gi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=xi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles
|
|
517
|
+
`}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=gi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Oi.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=xi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ki.elementDefinitions={},ki.styles=$i,Si([o()],ki.prototype,"variant",void 0),Si([o()],ki.prototype,"value",void 0),Si([s()],ki.prototype,"resolvedIcon",void 0),Si([r("slot")],ki.prototype,"slottedContent",void 0),h("ft-icon")(ki);const Ei={fontSize:yt.create("--ft-text-field-font-size","SIZE","14px"),labelSize:yt.create("--ft-text-field-label-size","SIZE","11px"),verticalSpacing:yt.create("--ft-text-field-vertical-spacing","SIZE","4px"),horizontalSpacing:yt.create("--ft-text-field-horizontal-spacing","SIZE","16px"),helperColor:yt.extend("--ft-text-field-helper-color",bt.colorOnSurfaceMedium),colorPrimary:yt.external(bt.colorPrimary,"Design system"),colorOnSurface:yt.external(bt.colorOnSurface,"Design system"),colorOnSurfaceDisabled:yt.external(bt.colorOnSurfaceDisabled,"Design system"),borderRadiusS:yt.external(bt.borderRadiusS,"Design system"),colorError:yt.external(bt.colorError,"Design system"),prefixColor:yt.extend("--ft-text-field-prefix-color",bt.colorOnSurfaceMedium),iconColor:yt.extend("--ft-text-field-icon-color",bt.colorOnSurfaceMedium),floatingZIndex:yt.create("--ft-text-field-floating-components-z-index","NUMBER","3"),colorSurface:yt.external(bt.colorSurface,"Design system"),colorOutline:yt.external(bt.colorOutline,"Design system"),elevation02:yt.external(bt.elevation02,"Design system"),suggestSize:yt.create("--ft-text-field-suggest-size","SIZE","300px")},Ni=v`
|
|
518
518
|
*:focus {
|
|
519
519
|
outline: none;
|
|
520
520
|
}
|
|
@@ -666,7 +666,11 @@ class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
666
666
|
.ft-text-field--with-icon {
|
|
667
667
|
${vt(Ge.labelMaxWidth,`calc(100% - ${yi} - ${Ge.horizontalSpacing})`)};
|
|
668
668
|
}
|
|
669
|
-
|
|
669
|
+
|
|
670
|
+
.ft-text-field--with-password ft-icon:hover {
|
|
671
|
+
cursor: pointer;
|
|
672
|
+
}
|
|
673
|
+
`;var Ci=function(t,e,i,o){for(var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};class Ri extends Et{constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=xi.EYE_SLASH,this.passwordRevealedIcon=xi.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":this.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return X`
|
|
670
674
|
<div class="${jt(t)}">
|
|
671
675
|
<div class="ft-text-field--main-panel"
|
|
672
676
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -685,7 +689,7 @@ class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
685
689
|
${this.prefix}
|
|
686
690
|
</ft-typography>
|
|
687
691
|
`:G}
|
|
688
|
-
<input type
|
|
692
|
+
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
689
693
|
maxlength=${(t=>null!=t?t:G)
|
|
690
694
|
/**
|
|
691
695
|
* @license
|
|
@@ -699,12 +703,7 @@ class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
699
703
|
@click=${this.handleClick}
|
|
700
704
|
@keyup=${this.handleInput}
|
|
701
705
|
@focus=${this.onFocus}/>
|
|
702
|
-
${this.
|
|
703
|
-
<ft-icon class="ft-text-field--icon"
|
|
704
|
-
.variant=${this.iconVariant}
|
|
705
|
-
.value=${this.icon}
|
|
706
|
-
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
707
|
-
`:G}
|
|
706
|
+
${this.renderIcon()}
|
|
708
707
|
</div>
|
|
709
708
|
<div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
|
|
710
709
|
@suggestion-selected=${this.onSuggestionSelected}>
|
|
@@ -717,7 +716,17 @@ class di extends Ut{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
717
716
|
</ft-typography>
|
|
718
717
|
`:G}
|
|
719
718
|
</div>
|
|
720
|
-
`}
|
|
719
|
+
`}renderPasswordIcon(){return X`
|
|
720
|
+
<ft-icon class="ft-text-field--icon"
|
|
721
|
+
.variant=${this.iconVariant}
|
|
722
|
+
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
723
|
+
@click=${()=>this.togglePasswordVisibility()}></ft-icon>
|
|
724
|
+
`}renderIcon(){return this.password?this.renderPasswordIcon():this.icon?X`
|
|
725
|
+
<ft-icon class="ft-text-field--icon"
|
|
726
|
+
.variant=${this.iconVariant}
|
|
727
|
+
.value=${this.icon}
|
|
728
|
+
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
729
|
+
`:G}updated(t){super.updated(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,i;if(super.contentAvailableCallback(t),!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),o=null===(i=this.suggestionsContainer)||void 0===i?void 0:i.getBoundingClientRect();t&&o&&(this.suggestionsOnTop=t.bottom+o.height>window.innerHeight&&t.top-o.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const i=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(i,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const i=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let o;o="ArrowDown"===t.key?i<this.visibleSuggestions.length-1?i+1:0:i>0?i-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[o])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}Ri.elementDefinitions={"ft-input-label":ei,"ft-ripple":ci,"ft-typography":Ye,"ft-icon":ki},Ri.styles=[We,Ni],Ci([o()],Ri.prototype,"label",void 0),Ci([o({noAccessor:!0})],Ri.prototype,"value",null),Ci([s()],Ri.prototype,"dispatchedValue",void 0),Ci([o()],Ri.prototype,"helper",void 0),Ci([o({type:Boolean})],Ri.prototype,"outlined",void 0),Ci([o({type:Boolean})],Ri.prototype,"disabled",void 0),Ci([o({type:Boolean})],Ri.prototype,"error",void 0),Ci([o()],Ri.prototype,"prefix",void 0),Ci([o()],Ri.prototype,"icon",void 0),Ci([o()],Ri.prototype,"passwordHiddenIcon",void 0),Ci([o()],Ri.prototype,"passwordRevealedIcon",void 0),Ci([o()],Ri.prototype,"iconVariant",void 0),Ci([o({type:Boolean})],Ri.prototype,"filterSuggestions",void 0),Ci([o({type:Number})],Ri.prototype,"maxLength",void 0),Ci([o({type:Boolean})],Ri.prototype,"password",void 0),Ci([s()],Ri.prototype,"focused",void 0),Ci([s()],Ri.prototype,"hidePassword",void 0),Ci([s()],Ri.prototype,"suggestionsOnTop",void 0),Ci([s()],Ri.prototype,"hideSuggestions",void 0),Ci([s()],Ri.prototype,"visibleSuggestions",void 0),Ci([r(".ft-text-field--main-panel")],Ri.prototype,"mainPanel",void 0),Ci([r(".ft-text-field--input")],Ri.prototype,"input",void 0),Ci([r(".ft-text-field--suggestions")],Ri.prototype,"suggestionsContainer",void 0),Ci([p({selector:"ft-text-field-suggestion"})],Ri.prototype,"suggestions",void 0);const Mi=v`
|
|
721
730
|
.ft-text-field-suggestion {
|
|
722
731
|
position: relative;
|
|
723
732
|
padding: 8px 16px;
|
|
@@ -7,7 +7,10 @@ export interface FtTextFieldProperties {
|
|
|
7
7
|
error?: boolean;
|
|
8
8
|
prefix?: string | null;
|
|
9
9
|
icon?: string;
|
|
10
|
+
passwordHiddenIcon?: string;
|
|
11
|
+
passwordRevealedIcon?: string;
|
|
10
12
|
iconVariant?: string;
|
|
11
13
|
filterSuggestions?: boolean;
|
|
12
14
|
maxLength?: number;
|
|
15
|
+
password?: boolean;
|
|
13
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-text-field",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"description": "A fluidtopics text field",
|
|
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": "1.0.
|
|
23
|
-
"@fluid-topics/ft-input-label": "1.0.
|
|
24
|
-
"@fluid-topics/ft-ripple": "1.0.
|
|
25
|
-
"@fluid-topics/ft-typography": "1.0.
|
|
26
|
-
"@fluid-topics/ft-wc-utils": "1.0.
|
|
22
|
+
"@fluid-topics/ft-icon": "1.0.31",
|
|
23
|
+
"@fluid-topics/ft-input-label": "1.0.31",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.0.31",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.0.31",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.0.31",
|
|
27
27
|
"lit": "2.7.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "b55d9d0634c2fff57ed2bd1b3f913105bbcca3c5"
|
|
30
30
|
}
|