@fluid-topics/ft-text-field 1.0.57 → 1.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/ft-text-field.d.ts +3 -1
- package/build/ft-text-field.js +7 -6
- package/build/ft-text-field.light.js +6 -6
- package/build/ft-text-field.min.js +175 -175
- package/package.json +7 -7
package/build/ft-text-field.d.ts
CHANGED
|
@@ -2,7 +2,8 @@ import { PropertyValues } from "lit";
|
|
|
2
2
|
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
3
3
|
import { FtTextFieldProperties } from "./ft-text-field.properties";
|
|
4
4
|
import type { FtTextFieldSuggestion } from "./ft-text-field-suggestion";
|
|
5
|
-
|
|
5
|
+
declare const FtTextField_base: import("@fluid-topics/ft-wc-utils").FtFormComponentType<typeof FtLitElement>;
|
|
6
|
+
export declare class FtTextField extends FtTextField_base implements FtTextFieldProperties {
|
|
6
7
|
static elementDefinitions: ElementDefinitionsMap;
|
|
7
8
|
static styles: import("lit").CSSResult[];
|
|
8
9
|
label?: string;
|
|
@@ -48,3 +49,4 @@ export declare class FtTextField extends FtLitElement implements FtTextFieldProp
|
|
|
48
49
|
private onMainPanelBlur;
|
|
49
50
|
private togglePasswordVisibility;
|
|
50
51
|
}
|
|
52
|
+
export {};
|
package/build/ft-text-field.js
CHANGED
|
@@ -8,13 +8,13 @@ import { html, nothing } from "lit";
|
|
|
8
8
|
import { property, query, queryAssignedElements, state } from "lit/decorators.js";
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
10
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
11
|
-
import { FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
11
|
+
import { FtLitElement, toFtFormComponent } 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
15
|
import { FtIcon, FtIcons } from "@fluid-topics/ft-icon";
|
|
16
16
|
import { styles } from "./ft-text-field.css";
|
|
17
|
-
class FtTextField extends FtLitElement {
|
|
17
|
+
class FtTextField extends toFtFormComponent(FtLitElement, "textbox") {
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this._value = "";
|
|
@@ -50,6 +50,7 @@ class FtTextField extends FtLitElement {
|
|
|
50
50
|
setInternalValue(value) {
|
|
51
51
|
const oldValue = this._value;
|
|
52
52
|
this._value = value || "";
|
|
53
|
+
this.setFormValue(this._value);
|
|
53
54
|
this.requestUpdate("value", oldValue);
|
|
54
55
|
}
|
|
55
56
|
focus() {
|
|
@@ -86,10 +87,10 @@ class FtTextField extends FtLitElement {
|
|
|
86
87
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
87
88
|
`}
|
|
88
89
|
${this.prefix ? html `
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
91
|
+
${this.prefix}
|
|
92
|
+
</ft-typography>
|
|
93
|
+
` : nothing}
|
|
93
94
|
<input type=${(this.password && this.hidePassword) ? "password" : "text"}
|
|
94
95
|
maxlength=${ifDefined(this.maxLength || undefined)}
|
|
95
96
|
aria-label="${this.label}"
|
|
@@ -371,7 +371,7 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
371
371
|
<div class="ft-ripple--background"></div>
|
|
372
372
|
<div class="ft-ripple--effect"></div>
|
|
373
373
|
</div>
|
|
374
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.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,"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.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",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`
|
|
374
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.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,"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.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",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.EXTLINK_LIGHT="",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`
|
|
375
375
|
:host, i.ft-icon {
|
|
376
376
|
display: inline-flex;
|
|
377
377
|
align-items: center;
|
|
@@ -580,7 +580,7 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
580
580
|
.ft-text-field--with-password ft-icon:hover {
|
|
581
581
|
cursor: pointer;
|
|
582
582
|
}
|
|
583
|
-
`;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
|
|
583
|
+
`;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.toFtFormComponent(e.FtLitElement,"textbox")){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.setFormValue(this._value),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`
|
|
584
584
|
<div class="${s.classMap(t)}">
|
|
585
585
|
<div class="ft-text-field--main-panel"
|
|
586
586
|
@keydown=${this.handleKeyboardNavigation}
|
|
@@ -595,10 +595,10 @@ const F=Symbol.for(""),K=t=>{if((null==t?void 0:t.r)===F)return null==t?void 0:t
|
|
|
595
595
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
596
596
|
`}
|
|
597
597
|
${this.prefix?i.html`
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
598
|
+
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
599
|
+
${this.prefix}
|
|
600
|
+
</ft-typography>
|
|
601
|
+
`:i.nothing}
|
|
602
602
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
603
603
|
maxlength=${(t=>null!=t?t:N)(this.maxLength||void 0)}
|
|
604
604
|
aria-label="${this.label}"
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* @see https://github.com/webcomponents/polyfills/tree/master/packages/scoped-custom-element-registry
|
|
16
16
|
*/
|
|
17
|
-
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);c(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(r.set(s,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!p(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(
|
|
17
|
+
if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.customElements.define,i=window.customElements.get,o=window.customElements,s=new WeakMap,n=new WeakMap,r=new WeakMap,l=new WeakMap;let a;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,s){if(t=t.toLowerCase(),void 0!==this._getDefinition(t))throw new DOMException(`Failed to execute 'define' on 'CustomElementRegistry': the name "${t}" has already been used with this registry`);if(void 0!==this._definitionsByClass.get(s))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const l=s.prototype.attributeChangedCallback,a=new Set(s.observedAttributes||[]);c(s,a,l);const p={elementClass:s,connectedCallback:s.prototype.connectedCallback,disconnectedCallback:s.prototype.disconnectedCallback,adoptedCallback:s.prototype.adoptedCallback,attributeChangedCallback:l,formAssociated:s.formAssociated,formAssociatedCallback:s.prototype.formAssociatedCallback,formDisabledCallback:s.prototype.formDisabledCallback,formResetCallback:s.prototype.formResetCallback,formStateRestoreCallback:s.prototype.formStateRestoreCallback,observedAttributes:a};this._definitionsByTag.set(t,p),this._definitionsByClass.set(s,p);let f=i.call(o,t);f||(f=h(t),e.call(o,t,f)),this===window.customElements&&(r.set(s,p),p.standInClass=f);const d=this._awaitingUpgrade.get(t);if(d){this._awaitingUpgrade.delete(t);for(const t of d)n.delete(t),u(t,p,!0)}const x=this._whenDefinedPromises.get(t);return void 0!==x&&(x.resolve(s),this._whenDefinedPromises.delete(t)),s}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){const e=this._definitionsByTag.get(t);return e?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=a;if(e)return a=void 0,e;const i=r.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),s.set(e,i),e},window.HTMLElement.prototype=t.prototype;const p=t=>t===document||t instanceof ShadowRoot,f=t=>{let e=t.getRootNode();if(!p(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),p(e)||(e=l.get(e)?.getRootNode()||document)}return e.customElements},h=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=f(i)||window.customElements,s=o._getDefinition(e);return s?u(i,s):n.set(i,o),i}connectedCallback(){const t=s.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=s.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):n.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){const t=s.get(this);t?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=s.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=s.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=s.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=s.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},c=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,s){const n=t.toLowerCase();if(e.has(n)){const t=this.getAttribute(n);o.call(this,n,s),i.call(this,n,t,s)}else o.call(this,n,s)});const s=t.prototype.removeAttribute;s&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);s.call(this,o),i.call(this,o,t,null)}else s.call(this,o)})},d=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):d(i)},u=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),s.set(t,e),a=t;try{new e.elementClass}catch(t){d(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},x=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=x.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const y=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){g.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&l.set(t,this),g.pop(),t}};y(ShadowRoot,"createElement",document),y(ShadowRoot,"importNode",document),y(Element,"insertAdjacentHTML");const v=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){g.push(this),i.set.call(this,t),g.pop()}})};if(v(Element,"innerHTML"),v(ShadowRoot,"innerHTML"),Object.defineProperty(window,"customElements",{value:new CustomElementRegistry,configurable:!0,writable:!0}),window.ElementInternals&&window.ElementInternals.prototype.setFormValue){const t=new WeakMap,e=HTMLElement.prototype.attachInternals,i=["setFormValue","setValidity","checkValidity","reportValidity"];HTMLElement.prototype.attachInternals=function(...i){const o=e.call(this,...i);return t.set(o,this),o},i.forEach((e=>{const i=window.ElementInternals.prototype,o=i[e];i[e]=function(...e){const i=t.get(this);if(!0!==s.get(i).formAssociated)throw new DOMException(`Failed to execute ${o} on 'ElementInternals': The target element is not a form-associated custom element.`);o?.call(this,...e)}}));class o extends Array{constructor(t){super(...t),this._elements=t}get value(){return this._elements.find((t=>!0===t.checked))?.value||""}}class n{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),s=e.get(o)||[];this[+i]=t,s.push(t),e.set(o,s)})),this.length=t.length,e.forEach(((t,e)=>{t&&(1===t.length?this[e]=t[0]:this[e]=new o(t))}))}namedItem(t){return this[t]}}const r=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=r.get.call(this,[]),e=[];for(const i of t){const t=s.get(i);t&&!0!==t.formAssociated||e.push(i)}return new n(e)}})}}try{window.customElements.define("custom-element",null)}catch(ui){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{if(null!==i)try{t.bind(window.customElements)(e,i,o)}catch(t){console.info(e,i,o,t)}}}class e{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,e){return this.callbacks=[t],this.debounce(e)}queue(t,e){return this.callbacks.push(t),this.debounce(e)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return null==this.promise&&(this.promise=new Promise(((t,e)=>{this.resolvePromise=t,this.rejectPromise=e}))),this.clearTimeout(),this._debounce=window.setTimeout((()=>this.runCallbacks()),null!=t?t:this.timeout),this.promise}async runCallbacks(){var t,e;const i=[...this.callbacks];this.callbacks=[];const o=null!==(t=this.rejectPromise)&&void 0!==t?t:()=>null,s=null!==(e=this.resolvePromise)&&void 0!==e?e:()=>null;this.clearPromise();for(let t of i)try{await t()}catch(t){return void o(t)}s(!0)}clearTimeout(){null!=this._debounce&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -67,7 +67,7 @@ var M;R.finalized=!0,R.elementProperties=new Map,R.elementStyles=[],R.shadowRoot
|
|
|
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(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`
|
|
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(", "))}}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;
|
|
@@ -99,143 +99,143 @@ var dt,ut;let xt=class extends R{constructor(){super(...arguments),this.renderOp
|
|
|
99
99
|
display: inline-block;
|
|
100
100
|
width: 0;
|
|
101
101
|
}
|
|
102
|
-
`,window.ftReduxStores||(window.ftReduxStores={}),navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
102
|
+
`,window.ftReduxStores||(window.ftReduxStores={});const Nt=Symbol("elementInternals");var Ct,Rt;navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(Rt=null===(Ct=window.safari)||void 0===Ct?void 0:Ct.pushNotification)||void 0===Rt||Rt.toString());
|
|
103
103
|
/**
|
|
104
104
|
* @license
|
|
105
105
|
* Copyright 2017 Google LLC
|
|
106
106
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
107
107
|
*/
|
|
108
|
-
const
|
|
108
|
+
const Mt=1,Ut=2,zt=t=>(...e)=>({_$litDirective$:t,values:e});class jt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
109
109
|
/**
|
|
110
110
|
* @license
|
|
111
111
|
* Copyright 2018 Google LLC
|
|
112
112
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
113
|
-
*/const
|
|
113
|
+
*/const Ft=zt(class extends jt{constructor(t){var e;if(super(t),t.type!==Mt||"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}}),At=Symbol.for(""),Bt=t=>{if((null==t?void 0:t.r)===At)return null==t?void 0:t._$litStatic$},Dt=t=>({_$litStatic$:t,r:At}),Pt=new Map,It=(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=Bt(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=Pt.get(t))&&(r.raw=r,Pt.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 Lt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Lt||(Lt={}));const Tt=yt.extend("--ft-typography-font-family",bt.titleFont),_t=yt.extend("--ft-typography-font-family",bt.contentFont),Wt={fontFamily:_t,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")},Ht=yt.extend("--ft-typography-title-font-family",Tt),Kt=yt.extend("--ft-typography-title-font-size",Wt.fontSize,"20px"),Zt=yt.extend("--ft-typography-title-font-weight",Wt.fontWeight,"normal"),Vt=yt.extend("--ft-typography-title-letter-spacing",Wt.letterSpacing,"0.15px"),Jt=yt.extend("--ft-typography-title-line-height",Wt.lineHeight,"1.2"),qt=yt.extend("--ft-typography-title-text-transform",Wt.textTransform,"inherit"),Xt=yt.extend("--ft-typography-title-dense-font-family",Tt),Yt=yt.extend("--ft-typography-title-dense-font-size",Wt.fontSize,"14px"),Gt=yt.extend("--ft-typography-title-dense-font-weight",Wt.fontWeight,"normal"),Qt=yt.extend("--ft-typography-title-dense-letter-spacing",Wt.letterSpacing,"0.105px"),te=yt.extend("--ft-typography-title-dense-line-height",Wt.lineHeight,"1.7"),ee=yt.extend("--ft-typography-title-dense-text-transform",Wt.textTransform,"inherit"),ie=yt.extend("--ft-typography-subtitle1-font-family",_t),oe=yt.extend("--ft-typography-subtitle1-font-size",Wt.fontSize,"16px"),se=yt.extend("--ft-typography-subtitle1-font-weight",Wt.fontWeight,"600"),ne=yt.extend("--ft-typography-subtitle1-letter-spacing",Wt.letterSpacing,"0.144px"),re=yt.extend("--ft-typography-subtitle1-line-height",Wt.lineHeight,"1.5"),le=yt.extend("--ft-typography-subtitle1-text-transform",Wt.textTransform,"inherit"),ae=yt.extend("--ft-typography-subtitle2-font-family",_t),pe=yt.extend("--ft-typography-subtitle2-font-size",Wt.fontSize,"14px"),fe=yt.extend("--ft-typography-subtitle2-font-weight",Wt.fontWeight,"normal"),he=yt.extend("--ft-typography-subtitle2-letter-spacing",Wt.letterSpacing,"0.098px"),ce=yt.extend("--ft-typography-subtitle2-line-height",Wt.lineHeight,"1.7"),de=yt.extend("--ft-typography-subtitle2-text-transform",Wt.textTransform,"inherit"),ue={fontFamily:yt.extend("--ft-typography-body1-font-family",_t),fontSize:yt.extend("--ft-typography-body1-font-size",Wt.fontSize,"16px"),fontWeight:yt.extend("--ft-typography-body1-font-weight",Wt.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-body1-letter-spacing",Wt.letterSpacing,"0.496px"),lineHeight:yt.extend("--ft-typography-body1-line-height",Wt.lineHeight,"1.5"),textTransform:yt.extend("--ft-typography-body1-text-transform",Wt.textTransform,"inherit")},xe=yt.extend("--ft-typography-body2-font-family",_t),ge=yt.extend("--ft-typography-body2-font-size",Wt.fontSize,"14px"),ye=yt.extend("--ft-typography-body2-font-weight",Wt.fontWeight,"normal"),ve=yt.extend("--ft-typography-body2-letter-spacing",Wt.letterSpacing,"0.252px"),be=yt.extend("--ft-typography-body2-line-height",Wt.lineHeight,"1.4"),me=yt.extend("--ft-typography-body2-text-transform",Wt.textTransform,"inherit"),we={fontFamily:yt.extend("--ft-typography-caption-font-family",_t),fontSize:yt.extend("--ft-typography-caption-font-size",Wt.fontSize,"12px"),fontWeight:yt.extend("--ft-typography-caption-font-weight",Wt.fontWeight,"normal"),letterSpacing:yt.extend("--ft-typography-caption-letter-spacing",Wt.letterSpacing,"0.396px"),lineHeight:yt.extend("--ft-typography-caption-line-height",Wt.lineHeight,"1.33"),textTransform:yt.extend("--ft-typography-caption-text-transform",Wt.textTransform,"inherit")},$e=yt.extend("--ft-typography-breadcrumb-font-family",_t),Oe=yt.extend("--ft-typography-breadcrumb-font-size",Wt.fontSize,"10px"),Se=yt.extend("--ft-typography-breadcrumb-font-weight",Wt.fontWeight,"normal"),ke=yt.extend("--ft-typography-breadcrumb-letter-spacing",Wt.letterSpacing,"0.33px"),Ee=yt.extend("--ft-typography-breadcrumb-line-height",Wt.lineHeight,"1.6"),Ne=yt.extend("--ft-typography-breadcrumb-text-transform",Wt.textTransform,"inherit"),Ce=yt.extend("--ft-typography-overline-font-family",_t),Re=yt.extend("--ft-typography-overline-font-size",Wt.fontSize,"10px"),Me=yt.extend("--ft-typography-overline-font-weight",Wt.fontWeight,"normal"),Ue=yt.extend("--ft-typography-overline-letter-spacing",Wt.letterSpacing,"1.5px"),ze=yt.extend("--ft-typography-overline-line-height",Wt.lineHeight,"1.6"),je=yt.extend("--ft-typography-overline-text-transform",Wt.textTransform,"uppercase"),Fe=yt.extend("--ft-typography-button-font-family",_t),Ae=yt.extend("--ft-typography-button-font-size",Wt.fontSize,"14px"),Be=yt.extend("--ft-typography-button-font-weight",Wt.fontWeight,"600"),De=yt.extend("--ft-typography-button-letter-spacing",Wt.letterSpacing,"1.246px"),Pe=yt.extend("--ft-typography-button-line-height",Wt.lineHeight,"1.15"),Ie=yt.extend("--ft-typography-button-text-transform",Wt.textTransform,"uppercase"),Le=v`
|
|
119
119
|
.ft-typography--title {
|
|
120
|
-
font-family: ${
|
|
121
|
-
font-size: ${
|
|
122
|
-
font-weight: ${
|
|
123
|
-
letter-spacing: ${
|
|
124
|
-
line-height: ${
|
|
125
|
-
text-transform: ${
|
|
126
|
-
}
|
|
127
|
-
`,Le=v`
|
|
128
|
-
.ft-typography--title-dense {
|
|
129
|
-
font-family: ${qt};
|
|
130
|
-
font-size: ${Xt};
|
|
131
|
-
font-weight: ${Yt};
|
|
132
|
-
letter-spacing: ${Gt};
|
|
133
|
-
line-height: ${Qt};
|
|
134
|
-
text-transform: ${te};
|
|
120
|
+
font-family: ${Ht};
|
|
121
|
+
font-size: ${Kt};
|
|
122
|
+
font-weight: ${Zt};
|
|
123
|
+
letter-spacing: ${Vt};
|
|
124
|
+
line-height: ${Jt};
|
|
125
|
+
text-transform: ${qt};
|
|
135
126
|
}
|
|
136
127
|
`,Te=v`
|
|
137
|
-
.ft-typography--
|
|
138
|
-
font-family: ${
|
|
139
|
-
font-size: ${
|
|
140
|
-
font-weight: ${
|
|
141
|
-
letter-spacing: ${
|
|
142
|
-
line-height: ${
|
|
143
|
-
text-transform: ${
|
|
128
|
+
.ft-typography--title-dense {
|
|
129
|
+
font-family: ${Xt};
|
|
130
|
+
font-size: ${Yt};
|
|
131
|
+
font-weight: ${Gt};
|
|
132
|
+
letter-spacing: ${Qt};
|
|
133
|
+
line-height: ${te};
|
|
134
|
+
text-transform: ${ee};
|
|
144
135
|
}
|
|
145
136
|
`,_e=v`
|
|
146
|
-
.ft-typography--
|
|
147
|
-
font-family: ${
|
|
148
|
-
font-size: ${
|
|
149
|
-
font-weight: ${
|
|
150
|
-
letter-spacing: ${
|
|
151
|
-
line-height: ${
|
|
152
|
-
text-transform: ${
|
|
137
|
+
.ft-typography--subtitle1 {
|
|
138
|
+
font-family: ${ie};
|
|
139
|
+
font-size: ${oe};
|
|
140
|
+
font-weight: ${se};
|
|
141
|
+
letter-spacing: ${ne};
|
|
142
|
+
line-height: ${re};
|
|
143
|
+
text-transform: ${le};
|
|
153
144
|
}
|
|
154
|
-
|
|
155
145
|
`,We=v`
|
|
156
|
-
.ft-typography--
|
|
157
|
-
font-family: ${
|
|
158
|
-
font-size: ${
|
|
159
|
-
font-weight: ${
|
|
160
|
-
letter-spacing: ${
|
|
161
|
-
line-height: ${
|
|
162
|
-
text-transform: ${de
|
|
146
|
+
.ft-typography--subtitle2 {
|
|
147
|
+
font-family: ${ae};
|
|
148
|
+
font-size: ${pe};
|
|
149
|
+
font-weight: ${fe};
|
|
150
|
+
letter-spacing: ${he};
|
|
151
|
+
line-height: ${ce};
|
|
152
|
+
text-transform: ${de};
|
|
163
153
|
}
|
|
154
|
+
|
|
164
155
|
`,He=v`
|
|
165
|
-
.ft-typography--
|
|
166
|
-
font-family: ${ue};
|
|
167
|
-
font-size: ${
|
|
168
|
-
font-weight: ${
|
|
169
|
-
letter-spacing: ${
|
|
170
|
-
line-height: ${
|
|
171
|
-
text-transform: ${
|
|
156
|
+
.ft-typography--body1 {
|
|
157
|
+
font-family: ${ue.fontFamily};
|
|
158
|
+
font-size: ${ue.fontSize};
|
|
159
|
+
font-weight: ${ue.fontWeight};
|
|
160
|
+
letter-spacing: ${ue.letterSpacing};
|
|
161
|
+
line-height: ${ue.lineHeight};
|
|
162
|
+
text-transform: ${ue.textTransform};
|
|
172
163
|
}
|
|
173
164
|
`,Ke=v`
|
|
174
|
-
.ft-typography--
|
|
175
|
-
font-family: ${
|
|
176
|
-
font-size: ${
|
|
177
|
-
font-weight: ${
|
|
178
|
-
letter-spacing: ${
|
|
179
|
-
line-height: ${
|
|
180
|
-
text-transform: ${me
|
|
165
|
+
.ft-typography--body2 {
|
|
166
|
+
font-family: ${xe};
|
|
167
|
+
font-size: ${ge};
|
|
168
|
+
font-weight: ${ye};
|
|
169
|
+
letter-spacing: ${ve};
|
|
170
|
+
line-height: ${be};
|
|
171
|
+
text-transform: ${me};
|
|
181
172
|
}
|
|
182
173
|
`,Ze=v`
|
|
183
|
-
.ft-typography--
|
|
184
|
-
font-family: ${we};
|
|
185
|
-
font-size: ${
|
|
186
|
-
font-weight: ${
|
|
187
|
-
letter-spacing: ${
|
|
188
|
-
line-height: ${
|
|
189
|
-
text-transform: ${
|
|
174
|
+
.ft-typography--caption {
|
|
175
|
+
font-family: ${we.fontFamily};
|
|
176
|
+
font-size: ${we.fontSize};
|
|
177
|
+
font-weight: ${we.fontWeight};
|
|
178
|
+
letter-spacing: ${we.letterSpacing};
|
|
179
|
+
line-height: ${we.lineHeight};
|
|
180
|
+
text-transform: ${we.textTransform};
|
|
190
181
|
}
|
|
191
182
|
`,Ve=v`
|
|
192
|
-
.ft-typography--
|
|
193
|
-
font-family: ${
|
|
194
|
-
font-size: ${
|
|
195
|
-
font-weight: ${
|
|
196
|
-
letter-spacing: ${
|
|
197
|
-
line-height: ${
|
|
198
|
-
text-transform: ${
|
|
183
|
+
.ft-typography--breadcrumb {
|
|
184
|
+
font-family: ${$e};
|
|
185
|
+
font-size: ${Oe};
|
|
186
|
+
font-weight: ${Se};
|
|
187
|
+
letter-spacing: ${ke};
|
|
188
|
+
line-height: ${Ee};
|
|
189
|
+
text-transform: ${Ne};
|
|
199
190
|
}
|
|
200
191
|
`,Je=v`
|
|
201
|
-
.ft-typography--
|
|
202
|
-
font-family: ${
|
|
203
|
-
font-size: ${
|
|
204
|
-
font-weight: ${
|
|
205
|
-
letter-spacing: ${
|
|
206
|
-
line-height: ${
|
|
207
|
-
text-transform: ${
|
|
192
|
+
.ft-typography--overline {
|
|
193
|
+
font-family: ${Ce};
|
|
194
|
+
font-size: ${Re};
|
|
195
|
+
font-weight: ${Me};
|
|
196
|
+
letter-spacing: ${Ue};
|
|
197
|
+
line-height: ${ze};
|
|
198
|
+
text-transform: ${je};
|
|
208
199
|
}
|
|
209
200
|
`,qe=v`
|
|
201
|
+
.ft-typography--button {
|
|
202
|
+
font-family: ${Fe};
|
|
203
|
+
font-size: ${Ae};
|
|
204
|
+
font-weight: ${Be};
|
|
205
|
+
letter-spacing: ${De};
|
|
206
|
+
line-height: ${Pe};
|
|
207
|
+
text-transform: ${Ie};
|
|
208
|
+
}
|
|
209
|
+
`,Xe=v`
|
|
210
210
|
.ft-typography {
|
|
211
211
|
vertical-align: inherit;
|
|
212
212
|
}
|
|
213
|
-
`;var
|
|
214
|
-
<${
|
|
213
|
+
`;var Ye=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 Ge extends Et{constructor(){super(...arguments),this.variant=Lt.body1}render(){return this.element?It`
|
|
214
|
+
<${Dt(this.element)}
|
|
215
215
|
class="ft-typography ft-typography--${this.variant}">
|
|
216
216
|
<slot></slot>
|
|
217
|
-
</${
|
|
218
|
-
`:
|
|
217
|
+
</${Dt(this.element)}>
|
|
218
|
+
`:It`
|
|
219
219
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
220
|
-
`}}
|
|
220
|
+
`}}Ge.styles=[Le,Te,_e,We,He,Ke,Ze,Ve,Je,qe,Xe],Ye([o()],Ge.prototype,"element",void 0),Ye([o()],Ge.prototype,"variant",void 0),h("ft-typography")(Ge);const Qe={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")},ti=v`
|
|
221
221
|
.ft-input-label {
|
|
222
222
|
position: absolute;
|
|
223
223
|
inset: 0;
|
|
224
224
|
display: flex;
|
|
225
|
-
background-color: ${
|
|
226
|
-
border-radius: ${
|
|
225
|
+
background-color: ${Qe.colorSurface};
|
|
226
|
+
border-radius: ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0 0;
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
.ft-input-label--outlined {
|
|
230
|
-
border-radius: ${
|
|
230
|
+
border-radius: ${Qe.borderRadiusS};
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
.ft-input-label {
|
|
234
|
-
border-color: ${
|
|
234
|
+
border-color: ${Qe.borderColor};
|
|
235
235
|
}
|
|
236
236
|
|
|
237
237
|
.ft-input-label.ft-input-label--in-error {
|
|
238
|
-
border-color: ${
|
|
238
|
+
border-color: ${Qe.colorError}
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
.ft-input-label:before,
|
|
@@ -248,7 +248,7 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
.ft-input-label:before {
|
|
251
|
-
width: calc(${
|
|
251
|
+
width: calc(${Qe.horizontalSpacing} - 4px);
|
|
252
252
|
flex-shrink: 0;
|
|
253
253
|
}
|
|
254
254
|
|
|
@@ -264,20 +264,20 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
264
264
|
border-bottom-width: 1px;
|
|
265
265
|
border-bottom-style: solid;
|
|
266
266
|
border-color: inherit;
|
|
267
|
-
color: ${
|
|
267
|
+
color: ${Qe.textColor};
|
|
268
268
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
269
|
-
max-width: calc(${
|
|
269
|
+
max-width: calc(${Qe.labelMaxWidth} - 2 * (${Qe.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
270
270
|
text-overflow: ellipsis;
|
|
271
|
-
${vt(
|
|
272
|
-
${vt(
|
|
271
|
+
${vt(we.fontSize,Qe.fontSize)};
|
|
272
|
+
${vt(we.lineHeight,Qe.fontSize)};
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
.ft-input-label--in-error .ft-input-label--text {
|
|
276
|
-
color: ${
|
|
276
|
+
color: ${Qe.colorError}
|
|
277
277
|
}
|
|
278
278
|
|
|
279
279
|
.ft-input-label--disabled .ft-input-label--text {
|
|
280
|
-
color: ${
|
|
280
|
+
color: ${Qe.disabledTextColor};
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
.ft-input-label--hidden-text {
|
|
@@ -294,19 +294,19 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
294
294
|
overflow: hidden;
|
|
295
295
|
white-space: nowrap;
|
|
296
296
|
text-overflow: ellipsis;
|
|
297
|
-
padding: ${
|
|
298
|
-
margin: calc(${
|
|
297
|
+
padding: ${Qe.verticalSpacing} 4px;
|
|
298
|
+
margin: calc(${Qe.verticalSpacing} * -1) 0;
|
|
299
299
|
max-width: 100%;
|
|
300
300
|
box-sizing: border-box;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.ft-input-label--raised .ft-input-label--text {
|
|
304
|
-
${vt(
|
|
305
|
-
${vt(
|
|
304
|
+
${vt(we.fontSize,Qe.raisedFontSize)};
|
|
305
|
+
${vt(we.lineHeight,Qe.raisedFontSize)};
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
309
|
-
top: ${
|
|
309
|
+
top: ${Qe.verticalSpacing};
|
|
310
310
|
}
|
|
311
311
|
|
|
312
312
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -319,28 +319,28 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
319
319
|
.ft-input-label--outlined:before {
|
|
320
320
|
border-left-width: 1px;
|
|
321
321
|
border-left-style: solid;
|
|
322
|
-
border-radius: ${
|
|
322
|
+
border-radius: ${Qe.borderRadiusS} 0 0 ${Qe.borderRadiusS};
|
|
323
323
|
}
|
|
324
324
|
|
|
325
325
|
.ft-input-label--outlined:after {
|
|
326
326
|
border-right-width: 1px;
|
|
327
327
|
border-right-style: solid;
|
|
328
|
-
border-radius: 0 ${
|
|
328
|
+
border-radius: 0 ${Qe.borderRadiusS} ${Qe.borderRadiusS} 0;
|
|
329
329
|
}
|
|
330
330
|
|
|
331
331
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
332
332
|
padding: 2px 4px;
|
|
333
|
-
z-index: ${
|
|
334
|
-
background-color: ${
|
|
335
|
-
border-radius: ${
|
|
333
|
+
z-index: ${Qe.raisedZIndex};
|
|
334
|
+
background-color: ${Qe.colorSurface};
|
|
335
|
+
border-radius: ${Qe.borderRadiusS};
|
|
336
336
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
337
337
|
}
|
|
338
338
|
|
|
339
339
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
340
340
|
border-top: none;
|
|
341
341
|
}
|
|
342
|
-
`;var
|
|
343
|
-
<div class="${
|
|
342
|
+
`;var ei=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 ii extends Et{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return X`
|
|
343
|
+
<div class="${Ft(t)}">
|
|
344
344
|
${this.text?X`
|
|
345
345
|
<div class="ft-input-label--text ft-typography--caption">
|
|
346
346
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
@@ -348,7 +348,7 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
348
348
|
</div>
|
|
349
349
|
`:null}
|
|
350
350
|
</div>
|
|
351
|
-
`}}
|
|
351
|
+
`}}ii.elementDefinitions={},ii.styles=[Ze,ti],ei([o({type:String})],ii.prototype,"text",void 0),ei([o({type:Boolean})],ii.prototype,"raised",void 0),ei([o({type:Boolean})],ii.prototype,"outlined",void 0),ei([o({type:Boolean})],ii.prototype,"disabled",void 0),ei([o({type:Boolean})],ii.prototype,"error",void 0),h("ft-input-label")(ii);const oi=yt.extend("--ft-ripple-color",bt.colorContent),si={color:oi,backgroundColor:yt.extend("--ft-ripple-background-color",oi),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")},ni=yt.extend("--ft-ripple-color",bt.colorPrimary),ri=ni,li=yt.extend("--ft-ripple-background-color",ni),ai=yt.extend("--ft-ripple-color",bt.colorSecondary),pi=ai,fi=yt.extend("--ft-ripple-background-color",ai),hi=v`
|
|
352
352
|
:host {
|
|
353
353
|
display: contents;
|
|
354
354
|
}
|
|
@@ -361,7 +361,7 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
361
361
|
|
|
362
362
|
.ft-ripple:not(.ft-ripple--unbounded) {
|
|
363
363
|
overflow: hidden;
|
|
364
|
-
border-radius: ${
|
|
364
|
+
border-radius: ${si.borderRadius};
|
|
365
365
|
}
|
|
366
366
|
|
|
367
367
|
.ft-ripple .ft-ripple--background,
|
|
@@ -395,27 +395,27 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
395
395
|
}
|
|
396
396
|
|
|
397
397
|
.ft-ripple .ft-ripple--background {
|
|
398
|
-
background-color: ${
|
|
398
|
+
background-color: ${si.backgroundColor};
|
|
399
399
|
}
|
|
400
400
|
|
|
401
401
|
.ft-ripple .ft-ripple--effect {
|
|
402
|
-
background-color: ${
|
|
402
|
+
background-color: ${si.color};
|
|
403
403
|
}
|
|
404
404
|
|
|
405
405
|
.ft-ripple.ft-ripple--secondary .ft-ripple--background {
|
|
406
|
-
background-color: ${
|
|
406
|
+
background-color: ${fi};
|
|
407
407
|
}
|
|
408
408
|
|
|
409
409
|
.ft-ripple.ft-ripple--secondary .ft-ripple--effect {
|
|
410
|
-
background-color: ${
|
|
410
|
+
background-color: ${pi};
|
|
411
411
|
}
|
|
412
412
|
|
|
413
413
|
.ft-ripple.ft-ripple--primary .ft-ripple--background {
|
|
414
|
-
background-color: ${
|
|
414
|
+
background-color: ${li};
|
|
415
415
|
}
|
|
416
416
|
|
|
417
417
|
.ft-ripple.ft-ripple--primary .ft-ripple--effect {
|
|
418
|
-
background-color: ${
|
|
418
|
+
background-color: ${ri};
|
|
419
419
|
}
|
|
420
420
|
|
|
421
421
|
.ft-ripple .ft-ripple--background {
|
|
@@ -445,39 +445,39 @@ const Rt=1,Mt=2,Ut=t=>(...e)=>({_$litDirective$:t,values:e});class zt{constructo
|
|
|
445
445
|
}
|
|
446
446
|
|
|
447
447
|
.ft-ripple.ft-ripple--hovered .ft-ripple--background {
|
|
448
|
-
opacity: ${
|
|
448
|
+
opacity: ${si.opacityContentOnSurfaceHover};
|
|
449
449
|
}
|
|
450
450
|
|
|
451
451
|
.ft-ripple.ft-ripple--selected .ft-ripple--background {
|
|
452
|
-
opacity: ${
|
|
452
|
+
opacity: ${si.opacityContentOnSurfaceSelected};
|
|
453
453
|
}
|
|
454
454
|
|
|
455
455
|
.ft-ripple.ft-ripple--focused .ft-ripple--background {
|
|
456
|
-
opacity: ${
|
|
456
|
+
opacity: ${si.opacityContentOnSurfaceFocused};
|
|
457
457
|
}
|
|
458
458
|
|
|
459
459
|
.ft-ripple.ft-ripple--pressed .ft-ripple--effect {
|
|
460
|
-
opacity: ${
|
|
460
|
+
opacity: ${si.opacityContentOnSurfacePressed};
|
|
461
461
|
transform: translate(-50%, -50%) scale(1);
|
|
462
462
|
}
|
|
463
|
-
`;var
|
|
463
|
+
`;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 di extends Et{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new e(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e(10),this.moveRipple=t=>{var e,i;let{x:o,y:s}=this.getCoordinates(t),n=null!==(i=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==i?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=o?o-n.x:n.width/2),this.originY=Math.round(null!=s?s-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return X`
|
|
464
464
|
<style>
|
|
465
465
|
.ft-ripple .ft-ripple--effect {
|
|
466
466
|
left: ${this.originX}px;
|
|
467
467
|
top: ${this.originY}px;
|
|
468
468
|
}
|
|
469
469
|
</style>
|
|
470
|
-
<div class="${
|
|
470
|
+
<div class="${Ft(t)}">
|
|
471
471
|
<div class="ft-ripple--background"></div>
|
|
472
472
|
<div class="ft-ripple--effect"></div>
|
|
473
473
|
</div>
|
|
474
|
-
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}
|
|
474
|
+
`}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,i;super.update(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"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}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)}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}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}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.endRipple()}}di.elementDefinitions={},di.styles=hi,ci([o({type:Boolean})],di.prototype,"primary",void 0),ci([o({type:Boolean})],di.prototype,"secondary",void 0),ci([o({type:Boolean})],di.prototype,"unbounded",void 0),ci([o({type:Boolean})],di.prototype,"activated",void 0),ci([o({type:Boolean})],di.prototype,"selected",void 0),ci([o({type:Boolean})],di.prototype,"disabled",void 0),ci([s()],di.prototype,"hovered",void 0),ci([s()],di.prototype,"focused",void 0),ci([s()],di.prototype,"pressed",void 0),ci([s()],di.prototype,"rippling",void 0),ci([s()],di.prototype,"originX",void 0),ci([s()],di.prototype,"originY",void 0),ci([r(".ft-ripple")],di.prototype,"ripple",void 0),ci([r(".ft-ripple--effect")],di.prototype,"rippleEffect",void 0),h("ft-ripple")(di);
|
|
475
475
|
/**
|
|
476
476
|
* @license
|
|
477
477
|
* Copyright 2017 Google LLC
|
|
478
478
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
479
479
|
*/
|
|
480
|
-
class
|
|
480
|
+
class ui extends jt{constructor(t){if(super(t),this.et=G,t.type!==Ut)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:[]}}}ui.directiveName="unsafeHTML",ui.resultType=1;const xi=zt(ui);var gi,yi;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",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.EXTLINK_LIGHT="",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=""}(gi||(gi={})),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=""}(yi||(yi={})),new Map([...["abw"].map((t=>[t,yi.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,yi.AUDIO])),...["avi"].map((t=>[t,yi.AVI])),...["chm","xhs"].map((t=>[t,yi.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,yi.CODE])),...["csv"].map((t=>[t,yi.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,yi.DITA])),...["epub"].map((t=>[t,yi.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,yi.EXCEL])),...["flac"].map((t=>[t,yi.FLAC])),...["gif"].map((t=>[t,yi.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,yi.GZIP])),...["html","htm","xhtml"].map((t=>[t,yi.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,yi.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,yi.JPEG])),...["json"].map((t=>[t,yi.JSON])),...["m4a","m4p"].map((t=>[t,yi.M4A])),...["mov","qt"].map((t=>[t,yi.MOV])),...["mp3"].map((t=>[t,yi.MP3])),...["mp4","m4v"].map((t=>[t,yi.MP4])),...["ogg","oga"].map((t=>[t,yi.OGG])),...["pdf","ps"].map((t=>[t,yi.PDF])),...["png"].map((t=>[t,yi.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,yi.POWERPOINT])),...["rar"].map((t=>[t,yi.RAR])),...["stp"].map((t=>[t,yi.STP])),...["txt","rtf","md","mdown"].map((t=>[t,yi.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,yi.VIDEO])),...["wav"].map((t=>[t,yi.WAV])),...["wma"].map((t=>[t,yi.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,yi.WORD])),...["xml","xsl","rdf"].map((t=>[t,yi.XML])),...["yaml","yml","x-yaml"].map((t=>[t,yi.YAML])),...["zip"].map((t=>[t,yi.ZIP]))]);const vi=yt.create("--ft-icon-font-size","SIZE","24px"),bi=yt.extend("--ft-icon-fluid-topics-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-icons")),mi=yt.extend("--ft-icon-file-format-font-family",yt.create("--ft-icon-font-family","UNKNOWN","ft-mime")),wi=yt.extend("--ft-icon-material-font-family",yt.create("--ft-icon-font-family","UNKNOWN","Material Icons")),$i=yt.create("--ft-icon-vertical-align","UNKNOWN","unset"),Oi=v`
|
|
481
481
|
:host, i.ft-icon {
|
|
482
482
|
display: inline-flex;
|
|
483
483
|
align-items: center;
|
|
@@ -486,14 +486,14 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
486
486
|
}
|
|
487
487
|
|
|
488
488
|
:host {
|
|
489
|
-
width: ${
|
|
490
|
-
height: ${
|
|
489
|
+
width: ${vi};
|
|
490
|
+
height: ${vi};
|
|
491
491
|
}
|
|
492
492
|
|
|
493
493
|
i.ft-icon {
|
|
494
494
|
width: 100%;
|
|
495
495
|
height: 100%;
|
|
496
|
-
font-size: ${
|
|
496
|
+
font-size: ${vi};
|
|
497
497
|
line-height: 1;
|
|
498
498
|
font-weight: normal;
|
|
499
499
|
text-transform: none;
|
|
@@ -504,33 +504,33 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
504
504
|
text-rendering: auto;
|
|
505
505
|
-webkit-font-smoothing: antialiased;
|
|
506
506
|
-moz-osx-font-smoothing: grayscale;
|
|
507
|
-
vertical-align: ${
|
|
507
|
+
vertical-align: ${$i};
|
|
508
508
|
}
|
|
509
509
|
|
|
510
510
|
i.ft-icon.ft-icon--fluid-topics {
|
|
511
|
-
font-family: ${
|
|
511
|
+
font-family: ${bi}, ft-icons, fticons, sans-serif;
|
|
512
512
|
|
|
513
513
|
/* Ugly fix because font is broken */
|
|
514
|
-
font-size: calc(0.75 * ${
|
|
515
|
-
line-height: ${
|
|
514
|
+
font-size: calc(0.75 * ${vi});
|
|
515
|
+
line-height: ${vi};
|
|
516
516
|
position: relative;
|
|
517
517
|
top: -4%;
|
|
518
518
|
justify-content: center;
|
|
519
519
|
}
|
|
520
520
|
|
|
521
521
|
.ft-icon--file-format {
|
|
522
|
-
font-family: ${
|
|
522
|
+
font-family: ${mi}, ft-mime, sans-serif;
|
|
523
523
|
}
|
|
524
524
|
|
|
525
525
|
.ft-icon--material {
|
|
526
|
-
font-family: ${
|
|
526
|
+
font-family: ${wi}, "Material Icons", sans-serif;
|
|
527
527
|
}
|
|
528
|
-
`;var
|
|
528
|
+
`;var Si;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Si||(Si={}));var ki=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 Ei extends Et{constructor(){super(...arguments),this.resolvedIcon=G}render(){const t=this.variant&&Object.values(Si).includes(this.variant)?this.variant:Si.fluid_topics,e=t!==Si.material||!!this.value;return X`
|
|
529
529
|
<i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
|
|
530
|
-
${
|
|
530
|
+
${xi(this.resolvedIcon)}
|
|
531
531
|
<slot ?hidden=${e}></slot>
|
|
532
532
|
</i>
|
|
533
|
-
`}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
|
|
533
|
+
`}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 Si.file_format:this.resolvedIcon=null!==(t=yi[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Si.material:this.resolvedIcon=this.value||G;break;default:this.resolvedIcon=null!==(e=gi[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ei.elementDefinitions={},Ei.styles=Oi,ki([o()],Ei.prototype,"variant",void 0),ki([o()],Ei.prototype,"value",void 0),ki([s()],Ei.prototype,"resolvedIcon",void 0),ki([r("slot")],Ei.prototype,"slottedContent",void 0),h("ft-icon")(Ei);const Ni={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")},Ci=v`
|
|
534
534
|
*:focus {
|
|
535
535
|
outline: none;
|
|
536
536
|
}
|
|
@@ -543,16 +543,16 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
543
543
|
}
|
|
544
544
|
|
|
545
545
|
ft-input-label {
|
|
546
|
-
${vt(
|
|
547
|
-
${vt(
|
|
548
|
-
${vt(
|
|
549
|
-
${vt(
|
|
546
|
+
${vt(Qe.fontSize,Ni.fontSize)};
|
|
547
|
+
${vt(Qe.raisedFontSize,Ni.labelSize)};
|
|
548
|
+
${vt(Qe.verticalSpacing,Ni.verticalSpacing)};
|
|
549
|
+
${vt(Qe.horizontalSpacing,Ni.horizontalSpacing)};
|
|
550
550
|
}
|
|
551
551
|
|
|
552
552
|
.ft-text-field--main-panel {
|
|
553
553
|
position: relative;
|
|
554
554
|
display: flex;
|
|
555
|
-
height: calc(4 * ${
|
|
555
|
+
height: calc(4 * ${Ni.verticalSpacing} + ${Ni.labelSize} + ${Ni.fontSize});
|
|
556
556
|
}
|
|
557
557
|
|
|
558
558
|
.ft-text-field--input-panel {
|
|
@@ -561,24 +561,24 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
561
561
|
display: flex;
|
|
562
562
|
align-items: center;
|
|
563
563
|
overflow: hidden;
|
|
564
|
-
padding: 0 ${
|
|
564
|
+
padding: 0 ${Ni.horizontalSpacing};
|
|
565
565
|
|
|
566
|
-
${vt(
|
|
567
|
-
${vt(
|
|
566
|
+
${vt(ue.fontSize,Ni.fontSize)};
|
|
567
|
+
${vt(ue.lineHeight,Ni.fontSize)};
|
|
568
568
|
}
|
|
569
569
|
|
|
570
570
|
.ft-text-field--input-panel ft-ripple {
|
|
571
|
-
${vt(
|
|
572
|
-
${vt(
|
|
571
|
+
${vt(si.opacityContentOnSurfaceHover,"0.08")};
|
|
572
|
+
${vt(si.opacityContentOnSurfacePressed,"0.04")};
|
|
573
573
|
}
|
|
574
574
|
|
|
575
575
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
|
|
576
576
|
align-items: flex-end;
|
|
577
|
-
padding: 0 ${
|
|
577
|
+
padding: 0 ${Ni.horizontalSpacing} ${Ni.verticalSpacing} ${Ni.horizontalSpacing};
|
|
578
578
|
}
|
|
579
579
|
|
|
580
580
|
.ft-text-field--prefix {
|
|
581
|
-
color: ${
|
|
581
|
+
color: ${Ni.prefixColor};
|
|
582
582
|
margin-right: 2px;
|
|
583
583
|
flex-shrink: 1;
|
|
584
584
|
overflow: hidden;
|
|
@@ -597,15 +597,15 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
597
597
|
flex-shrink: 1;
|
|
598
598
|
min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
|
|
599
599
|
|
|
600
|
-
color: ${
|
|
601
|
-
padding: calc(2 * ${
|
|
600
|
+
color: ${Ni.colorOnSurface};
|
|
601
|
+
padding: calc(2 * ${Ni.verticalSpacing}) 0;
|
|
602
602
|
border: none;
|
|
603
603
|
background: none;
|
|
604
604
|
}
|
|
605
605
|
|
|
606
606
|
.ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
|
|
607
607
|
padding-bottom: 0;
|
|
608
|
-
padding-top: calc(${
|
|
608
|
+
padding-top: calc(${Ni.labelSize} + 2 * ${Ni.verticalSpacing});
|
|
609
609
|
}
|
|
610
610
|
|
|
611
611
|
.ft-text-field--input::-webkit-calendar-picker-indicator,
|
|
@@ -614,37 +614,37 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
614
614
|
}
|
|
615
615
|
|
|
616
616
|
.ft-text-field--disabled .ft-text-field--input {
|
|
617
|
-
color: ${
|
|
617
|
+
color: ${Ni.colorOnSurfaceDisabled};
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
.ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
|
|
621
|
-
${vt(
|
|
622
|
-
${vt(
|
|
621
|
+
${vt(Qe.borderColor,Ni.colorPrimary)};
|
|
622
|
+
${vt(Qe.textColor,Ni.colorPrimary)};
|
|
623
623
|
}
|
|
624
624
|
|
|
625
625
|
.ft-text-field--filled .ft-text-field--input-panel {
|
|
626
|
-
border-radius: ${
|
|
626
|
+
border-radius: ${Ni.borderRadiusS} ${Ni.borderRadiusS} 0 0;
|
|
627
627
|
}
|
|
628
628
|
|
|
629
629
|
.ft-text-field--outlined .ft-text-field--input-panel {
|
|
630
|
-
border-radius: ${
|
|
630
|
+
border-radius: ${Ni.borderRadiusS};
|
|
631
631
|
}
|
|
632
632
|
|
|
633
633
|
.ft-text-field--helper-text {
|
|
634
|
-
padding: 0 12px 0 ${
|
|
635
|
-
color: ${
|
|
634
|
+
padding: 0 12px 0 ${Ni.horizontalSpacing};
|
|
635
|
+
color: ${Ni.helperColor};
|
|
636
636
|
}
|
|
637
637
|
|
|
638
638
|
.ft-text-field--in-error .ft-text-field--input,
|
|
639
639
|
.ft-text-field--in-error .ft-text-field--helper-text,
|
|
640
640
|
.ft-text-field--in-error .ft-text-field--prefix {
|
|
641
|
-
color: ${
|
|
641
|
+
color: ${Ni.colorError};
|
|
642
642
|
}
|
|
643
643
|
|
|
644
644
|
.ft-text-field--icon {
|
|
645
645
|
align-self: center;
|
|
646
646
|
margin-left: 8px;
|
|
647
|
-
color: ${
|
|
647
|
+
color: ${Ni.iconColor};
|
|
648
648
|
}
|
|
649
649
|
|
|
650
650
|
.ft-text-field--container {
|
|
@@ -657,13 +657,13 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
657
657
|
position: absolute;
|
|
658
658
|
left: 0;
|
|
659
659
|
right: 0;
|
|
660
|
-
z-index: ${
|
|
661
|
-
background: ${
|
|
662
|
-
border: 1px solid ${
|
|
663
|
-
border-radius: 0 0 ${
|
|
664
|
-
box-shadow: ${
|
|
660
|
+
z-index: ${Ni.floatingZIndex};
|
|
661
|
+
background: ${Ni.colorSurface};
|
|
662
|
+
border: 1px solid ${Ni.colorOutline};
|
|
663
|
+
border-radius: 0 0 ${Ni.borderRadiusS} ${Ni.borderRadiusS};
|
|
664
|
+
box-shadow: ${Ni.elevation02};
|
|
665
665
|
outline: none;
|
|
666
|
-
max-height: ${
|
|
666
|
+
max-height: ${Ni.suggestSize};
|
|
667
667
|
overflow-y: auto;
|
|
668
668
|
}
|
|
669
669
|
|
|
@@ -680,14 +680,14 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
680
680
|
}
|
|
681
681
|
|
|
682
682
|
.ft-text-field--with-icon {
|
|
683
|
-
${vt(
|
|
683
|
+
${vt(Qe.labelMaxWidth,`calc(100% - ${vi} - ${Qe.horizontalSpacing})`)};
|
|
684
684
|
}
|
|
685
685
|
|
|
686
686
|
.ft-text-field--with-password ft-icon:hover {
|
|
687
687
|
cursor: pointer;
|
|
688
688
|
}
|
|
689
|
-
`;var
|
|
690
|
-
<div class="${
|
|
689
|
+
`;var Ri=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 Mi extends(function(t,e){return class extends t{static get formAssociated(){return!0}get form(){return this[Nt].form}constructor(...t){super(t),this[Nt]=this.attachInternals(),this[Nt].role=e}setFormValue(t){this[Nt].setFormValue(t)}}}(Et,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=gi.EYE_SLASH,this.passwordRevealedIcon=gi.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.setFormValue(this._value),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`
|
|
690
|
+
<div class="${Ft(t)}">
|
|
691
691
|
<div class="ft-text-field--main-panel"
|
|
692
692
|
@keydown=${this.handleKeyboardNavigation}
|
|
693
693
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -701,10 +701,10 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
701
701
|
<ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
|
|
702
702
|
`}
|
|
703
703
|
${this.prefix?X`
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
704
|
+
<ft-typography class="ft-text-field--prefix" vaiant="body1">
|
|
705
|
+
${this.prefix}
|
|
706
|
+
</ft-typography>
|
|
707
|
+
`:G}
|
|
708
708
|
<input type=${this.password&&this.hidePassword?"password":"text"}
|
|
709
709
|
maxlength=${(t=>null!=t?t:G)
|
|
710
710
|
/**
|
|
@@ -742,7 +742,7 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
742
742
|
.variant=${this.iconVariant}
|
|
743
743
|
.value=${this.icon}
|
|
744
744
|
@click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
|
|
745
|
-
`:G}update(t){super.update(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),t.has("focused")&&!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}}
|
|
745
|
+
`:G}update(t){super.update(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),t.has("focused")&&!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}}Mi.elementDefinitions={"ft-input-label":ii,"ft-ripple":di,"ft-typography":Ge,"ft-icon":Ei},Mi.styles=[He,Ci],Ri([o()],Mi.prototype,"label",void 0),Ri([o({noAccessor:!0})],Mi.prototype,"value",null),Ri([s()],Mi.prototype,"dispatchedValue",void 0),Ri([o()],Mi.prototype,"helper",void 0),Ri([o({type:Boolean})],Mi.prototype,"outlined",void 0),Ri([o({type:Boolean})],Mi.prototype,"disabled",void 0),Ri([o({type:Boolean})],Mi.prototype,"error",void 0),Ri([o()],Mi.prototype,"prefix",void 0),Ri([o()],Mi.prototype,"icon",void 0),Ri([o()],Mi.prototype,"passwordHiddenIcon",void 0),Ri([o()],Mi.prototype,"passwordRevealedIcon",void 0),Ri([o()],Mi.prototype,"iconVariant",void 0),Ri([o({type:Boolean})],Mi.prototype,"filterSuggestions",void 0),Ri([o({type:Number})],Mi.prototype,"maxLength",void 0),Ri([o({type:Boolean})],Mi.prototype,"password",void 0),Ri([s()],Mi.prototype,"focused",void 0),Ri([s()],Mi.prototype,"hidePassword",void 0),Ri([s()],Mi.prototype,"suggestionsOnTop",void 0),Ri([s()],Mi.prototype,"hideSuggestions",void 0),Ri([s()],Mi.prototype,"visibleSuggestions",void 0),Ri([r(".ft-text-field--main-panel")],Mi.prototype,"mainPanel",void 0),Ri([r(".ft-text-field--input")],Mi.prototype,"input",void 0),Ri([r(".ft-text-field--suggestions")],Mi.prototype,"suggestionsContainer",void 0),Ri([p({selector:"ft-text-field-suggestion"})],Mi.prototype,"suggestions",void 0);const Ui=v`
|
|
746
746
|
.ft-text-field-suggestion {
|
|
747
747
|
position: relative;
|
|
748
748
|
padding: 8px 16px;
|
|
@@ -767,7 +767,7 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
767
767
|
slot {
|
|
768
768
|
pointer-events: none;
|
|
769
769
|
}
|
|
770
|
-
`;var
|
|
770
|
+
`;var zi=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 ji extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class Fi extends Et{render(){return X`
|
|
771
771
|
<div class="ft-text-field-suggestion"
|
|
772
772
|
tabindex="-1"
|
|
773
773
|
@keydown=${this.onKeyDown}
|
|
@@ -779,4 +779,4 @@ class di extends zt{constructor(t){if(super(t),this.et=G,t.type!==Mt)throw Error
|
|
|
779
779
|
<slot></slot>
|
|
780
780
|
</ft-typography>
|
|
781
781
|
</div>
|
|
782
|
-
`}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
|
|
782
|
+
`}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 ji(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())}}Fi.elementDefinitions={"ft-ripple":di,"ft-typography":Ge,"ft-icon":Ei},Fi.styles=Ui,zi([o()],Fi.prototype,"value",void 0),zi([r(".ft-text-field-suggestion")],Fi.prototype,"container",void 0),zi([function(t,e,i){let o,s=t;return"object"==typeof t?(s=t.slot,o=t):o={flatten:e},i?p({slot:s,flatten:e,selector:i}):n({descriptor:t=>({get(){var t,e;const i="slot"+(s?`[name=${s}]`:":not([name])"),n=null===(t=this.renderRoot)||void 0===t?void 0:t.querySelector(i);return null!==(e=null==n?void 0:n.assignedNodes(o))&&void 0!==e?e:[]},enumerable:!0,configurable:!0})})}()],Fi.prototype,"assignedNodes",void 0),h("ft-text-field")(Mi),h("ft-text-field-suggestion")(Fi),t.FtTextField=Mi,t.FtTextFieldCssVariables=Ni,t.FtTextFieldSuggestion=Fi,t.SuggestionSelectedEvent=ji,t.styles=Ci,t.suggestionStyles=Ui}({});
|
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.59",
|
|
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.59",
|
|
23
|
+
"@fluid-topics/ft-input-label": "1.0.59",
|
|
24
|
+
"@fluid-topics/ft-ripple": "1.0.59",
|
|
25
|
+
"@fluid-topics/ft-typography": "1.0.59",
|
|
26
|
+
"@fluid-topics/ft-wc-utils": "1.0.59",
|
|
27
27
|
"lit": "2.7.2"
|
|
28
28
|
},
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "9412dc7c29ebc722b1b133bba63b1744f4bfdf60"
|
|
30
30
|
}
|