@fluid-topics/ft-input-label 0.2.20 → 0.3.0
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-input-label.d.ts +12 -12
- package/build/ft-input-label.js +12 -13
- package/build/ft-input-label.light.js +25 -26
- package/build/ft-input-label.min.js +44 -45
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementDefinitionsMap,
|
|
1
|
+
import { ElementDefinitionsMap, FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
2
2
|
export interface FtInputLabelProperties {
|
|
3
3
|
text?: string;
|
|
4
4
|
raised?: boolean;
|
|
@@ -7,17 +7,17 @@ export interface FtInputLabelProperties {
|
|
|
7
7
|
error?: boolean;
|
|
8
8
|
}
|
|
9
9
|
export declare const FtInputLabelCssVariables: {
|
|
10
|
-
fontSize: FtCssVariable;
|
|
11
|
-
raisedFontSize: FtCssVariable;
|
|
12
|
-
raisedZIndex: FtCssVariable;
|
|
13
|
-
verticalSpacing: FtCssVariable;
|
|
14
|
-
horizontalSpacing: FtCssVariable;
|
|
15
|
-
borderColor: FtCssVariable;
|
|
16
|
-
textColor: FtCssVariable;
|
|
17
|
-
disabledTextColor: FtCssVariable;
|
|
18
|
-
colorSurface: FtCssVariable;
|
|
19
|
-
borderRadiusS: FtCssVariable;
|
|
20
|
-
colorError: FtCssVariable;
|
|
10
|
+
fontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
11
|
+
raisedFontSize: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
12
|
+
raisedZIndex: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
13
|
+
verticalSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
14
|
+
horizontalSpacing: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
15
|
+
borderColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
16
|
+
textColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
17
|
+
disabledTextColor: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
18
|
+
colorSurface: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
19
|
+
borderRadiusS: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
20
|
+
colorError: import("@fluid-topics/ft-wc-utils").FtCssVariable;
|
|
21
21
|
};
|
|
22
22
|
export declare class FtInputLabel extends FtLitElement implements FtInputLabelProperties {
|
|
23
23
|
static elementDefinitions: ElementDefinitionsMap;
|
package/build/ft-input-label.js
CHANGED
|
@@ -7,20 +7,20 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
7
7
|
import { css, html } from "lit";
|
|
8
8
|
import { property } from "lit/decorators.js";
|
|
9
9
|
import { classMap } from "lit/directives/class-map.js";
|
|
10
|
-
import { designSystemVariables,
|
|
10
|
+
import { designSystemVariables, FtCssVariableFactory, FtLitElement, setVariable } from "@fluid-topics/ft-wc-utils";
|
|
11
11
|
import { FtTypographyCaption, FtTypographyCaptionCssVariables } from "@fluid-topics/ft-typography";
|
|
12
12
|
export const FtInputLabelCssVariables = {
|
|
13
|
-
fontSize:
|
|
14
|
-
raisedFontSize:
|
|
15
|
-
raisedZIndex:
|
|
16
|
-
verticalSpacing:
|
|
17
|
-
horizontalSpacing:
|
|
18
|
-
borderColor:
|
|
19
|
-
textColor:
|
|
20
|
-
disabledTextColor:
|
|
21
|
-
colorSurface:
|
|
22
|
-
borderRadiusS:
|
|
23
|
-
colorError:
|
|
13
|
+
fontSize: FtCssVariableFactory.create("--ft-input-label-font-size", "SIZE", "14px"),
|
|
14
|
+
raisedFontSize: FtCssVariableFactory.create("--ft-input-label-raised-font-size", "SIZE", "11px"),
|
|
15
|
+
raisedZIndex: FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index", "NUMBER", "2"),
|
|
16
|
+
verticalSpacing: FtCssVariableFactory.create("--ft-input-label-vertical-spacing", "SIZE", "4px"),
|
|
17
|
+
horizontalSpacing: FtCssVariableFactory.create("--ft-input-label-horizontal-spacing", "SIZE", "12px"),
|
|
18
|
+
borderColor: FtCssVariableFactory.extend("--ft-input-label-border-color", designSystemVariables.colorOutline),
|
|
19
|
+
textColor: FtCssVariableFactory.extend("--ft-input-label-text-color", designSystemVariables.colorOnSurfaceMedium),
|
|
20
|
+
disabledTextColor: FtCssVariableFactory.extend("--ft-input-label-disabled-text-color", designSystemVariables.colorOnSurfaceDisabled),
|
|
21
|
+
colorSurface: FtCssVariableFactory.external(designSystemVariables.colorSurface, "Design system"),
|
|
22
|
+
borderRadiusS: FtCssVariableFactory.external(designSystemVariables.borderRadiusS, "Design system"),
|
|
23
|
+
colorError: FtCssVariableFactory.external(designSystemVariables.colorError, "Design system"),
|
|
24
24
|
};
|
|
25
25
|
export class FtInputLabel extends FtLitElement {
|
|
26
26
|
constructor() {
|
|
@@ -125,7 +125,6 @@ FtInputLabel.styles = [
|
|
|
125
125
|
position: absolute;
|
|
126
126
|
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
127
127
|
transition: top 250ms;
|
|
128
|
-
width: calc(100% - 8px);
|
|
129
128
|
overflow: hidden;
|
|
130
129
|
white-space: nowrap;
|
|
131
130
|
text-overflow: ellipsis;
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Copyright 2017 Google LLC
|
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
6
6
|
*/
|
|
7
|
-
var r;const l=globalThis.trustedTypes,s=l?l.createPolicy("lit-html",{createHTML:t=>t}):void 0,a=`lit$${(Math.random()+"").slice(9)}$`,p="?"+a,h=`<${p}>`,f=document,y=(t="")=>f.createComment(t),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,u=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,b=/>/g
|
|
7
|
+
var r;const l=globalThis.trustedTypes,s=l?l.createPolicy("lit-html",{createHTML:t=>t}):void 0,a=`lit$${(Math.random()+"").slice(9)}$`,p="?"+a,h=`<${p}>`,f=document,y=(t="")=>f.createComment(t),d=t=>null===t||"object"!=typeof t&&"function"!=typeof t,g=Array.isArray,u=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,c=/-->/g,b=/>/g,$=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),v=/'/g,x=/"/g,m=/^(?:script|style|textarea|title)$/i,w=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),z=Symbol.for("lit-noChange"),S=Symbol.for("lit-nothing"),_=new WeakMap,A=f.createTreeWalker(f,129,null,!1),E=(t,i)=>{const e=t.length-1,o=[];let n,r=2===i?"<svg>":"",l=u;for(let i=0;i<e;i++){const e=t[i];let s,p,f=-1,y=0;for(;y<e.length&&(l.lastIndex=y,p=l.exec(e),null!==p);)y=l.lastIndex,l===u?"!--"===p[1]?l=c:void 0!==p[1]?l=b:void 0!==p[2]?(m.test(p[2])&&(n=RegExp("</"+p[2],"g")),l=$):void 0!==p[3]&&(l=$):l===$?">"===p[0]?(l=null!=n?n:u,f=-1):void 0===p[1]?f=-2:(f=l.lastIndex-p[2].length,s=p[1],l=void 0===p[3]?$:'"'===p[3]?x:v):l===x||l===v?l=$:l===c||l===b?l=u:(l=$,n=void 0);const d=l===$&&t[i+1].startsWith("/>")?" ":"";r+=l===u?e+h:f>=0?(o.push(s),e.slice(0,f)+"$lit$"+e.slice(f)+a+d):e+a+(-2===f?(o.push(void 0),i):d)}const p=r+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==s?s.createHTML(p):p,o]};class N{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let n=0,r=0;const s=t.length-1,h=this.parts,[f,d]=E(t,i);if(this.el=N.createElement(f,e),A.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=A.nextNode())&&h.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(a)){const e=d[r++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(a),i=/([.?@])?(.*)/.exec(e);h.push({type:1,index:n,name:i[2],strings:t,ctor:"."===i[1]?j:"?"===i[1]?M:"@"===i[1]?O:U})}else h.push({type:6,index:n})}for(const i of t)o.removeAttribute(i)}if(m.test(o.tagName)){const t=o.textContent.split(a),i=t.length-1;if(i>0){o.textContent=l?l.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],y()),A.nextNode(),h.push({type:2,index:++n});o.append(t[i],y())}}}else if(8===o.nodeType)if(o.data===p)h.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(a,t+1));)h.push({type:7,index:n}),t+=a.length-1}n++}}static createElement(t,i){const e=f.createElement("template");return e.innerHTML=t,e}}function I(t,i,e=t,o){var n,r,l,s;if(i===z)return i;let a=void 0!==o?null===(n=e._$Cl)||void 0===n?void 0:n[o]:e._$Cu;const p=d(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==p&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===p?a=void 0:(a=new p(t),a._$AT(t,e,o)),void 0!==o?(null!==(l=(s=e)._$Cl)&&void 0!==l?l:s._$Cl=[])[o]=a:e._$Cu=a),void 0!==a&&(i=I(t,a._$AS(t,i.values),a,o)),i}class T{constructor(t,i){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var i;const{el:{content:e},parts:o}=this._$AD,n=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:f).importNode(e,!0);A.currentNode=n;let r=A.nextNode(),l=0,s=0,a=o[0];for(;void 0!==a;){if(l===a.index){let i;2===a.type?i=new Z(r,r.nextSibling,this,t):1===a.type?i=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(i=new B(r,this,t)),this.v.push(i),a=o[++s]}l!==(null==a?void 0:a.index)&&(r=A.nextNode(),l++)}return n}m(t){let i=0;for(const e of this.v)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class Z{constructor(t,i,e,o){var n;this.type=2,this._$AH=S,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$C_}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=I(this,t,i),d(t)?t===S||null==t||""===t?(this._$AH!==S&&this._$AR(),this._$AH=S):t!==this._$AH&&t!==z&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>g(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==S&&d(this._$AH)?this._$AA.nextSibling.data=t:this.k(f.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=N.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===n)this._$AH.m(e);else{const t=new T(n,this),i=t.p(this.options);t.m(e),this.k(i),this._$AH=t}}_$AC(t){let i=_.get(t.strings);return void 0===i&&_.set(t.strings,i=new N(t)),i}S(t){g(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const n of t)o===i.length?i.push(e=new Z(this.j(y()),this.j(y()),this,this.options)):e=i[o],e._$AI(n),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$C_=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class U{constructor(t,i,e,o,n){this.type=1,this._$AH=S,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=n,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=S}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const n=this.strings;let r=!1;if(void 0===n)t=I(this,t,i,0),r=!d(t)||t!==this._$AH&&t!==z,r&&(this._$AH=t);else{const o=t;let l,s;for(t=n[0],l=0;l<n.length-1;l++)s=I(this,o[e+l],i,l),s===z&&(s=this._$AH[l]),r||(r=!d(s)||s!==this._$AH[l]),s===S?t=S:t!==S&&(t+=(null!=s?s:"")+n[l+1]),this._$AH[l]=s}r&&!o&&this.P(t)}P(t){t===S?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class j extends U{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===S?void 0:t}}const k=l?l.emptyScript:"";class M extends U{constructor(){super(...arguments),this.type=4}P(t){t&&t!==S?this.element.setAttribute(this.name,k):this.element.removeAttribute(this.name)}}class O extends U{constructor(t,i,e,o,n){super(t,i,e,o,n),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=I(this,t,i,0))&&void 0!==e?e:S)===z)return;const o=this._$AH,n=t===S&&o!==S||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==S&&(o===S||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class B{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){I(this,t)}}const C=window.litHtmlPolyfillSupport;null==C||C(N,Z),(null!==(r=globalThis.litHtmlVersions)&&void 0!==r?r:globalThis.litHtmlVersions=[]).push("2.2.7");
|
|
8
8
|
/**
|
|
9
9
|
* @license
|
|
10
10
|
* Copyright 2020 Google LLC
|
|
11
11
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
12
12
|
*/
|
|
13
|
-
const R=Symbol.for(""),W=t=>{
|
|
13
|
+
const R=Symbol.for(""),W=t=>{if((null==t?void 0:t.r)===R)return null==t?void 0:t._$litStatic$},G=t=>({_$litStatic$:t,r:R}),D=new Map,F=(t=>(i,...e)=>{const o=e.length;let n,r;const l=[],s=[];let a,p=0,h=!1;for(;p<o;){for(a=i[p];p<o&&void 0!==(r=e[p],n=W(r));)a+=n+i[++p],h=!0;s.push(r),l.push(a),p++}if(p===o&&l.push(i[o]),h){const t=l.join("$$lit$$");void 0===(i=D.get(t))&&(l.raw=l,D.set(t,i=l)),e=s}return t(i,...e)})(w);var H,P=function(t,i,e,o){for(var n,r=arguments.length,l=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,s=t.length-1;s>=0;s--)(n=t[s])&&(l=(r<3?n(l):r>3?n(i,e,l):n(i,e))||l);return r>3&&l&&Object.defineProperty(i,e,l),l};!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"}(H||(H={}));const K=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),L=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),q={fontFamily:L,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},J=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",K),Q=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",q.fontSize,"20px"),V=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",q.fontWeight,"normal"),X=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",q.letterSpacing,"0.15px"),Y=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",q.lineHeight,"1.2"),tt=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",q.textTransform,"inherit"),it=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",K),et=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",q.fontSize,"14px"),ot=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",q.fontWeight,"normal"),nt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",q.letterSpacing,"0.105px"),rt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",q.lineHeight,"1.7"),lt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",q.textTransform,"inherit"),st=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",L),at=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",q.fontSize,"16px"),pt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",q.fontWeight,"600"),ht=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",q.letterSpacing,"0.144px"),ft=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",q.lineHeight,"1.5"),yt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",q.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",L),gt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",q.fontSize,"14px"),ut=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",q.fontWeight,"normal"),ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",q.letterSpacing,"0.098px"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",q.lineHeight,"1.7"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",q.textTransform,"inherit"),vt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",L),xt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",q.fontSize,"16px"),mt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",q.fontWeight,"normal"),wt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",q.letterSpacing,"0.496px"),zt=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",q.lineHeight,"1.5"),St=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",q.textTransform,"inherit"),_t=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",L),At=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",q.fontSize,"14px"),Et=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",q.fontWeight,"normal"),Nt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",q.letterSpacing,"0.252px"),It=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",q.lineHeight,"1.4"),Tt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",q.textTransform,"inherit"),Zt={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",L),fontSize:i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",q.fontSize,"12px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",q.fontWeight,"normal"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",q.letterSpacing,"0.396px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",q.lineHeight,"1.33"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",q.textTransform,"inherit")},Ut=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",L),jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",q.fontSize,"10px"),kt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",q.fontWeight,"normal"),Mt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",q.letterSpacing,"0.33px"),Ot=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",q.lineHeight,"1.6"),Bt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",q.textTransform,"inherit"),Ct=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",L),Rt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",q.fontSize,"10px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",q.fontWeight,"normal"),Gt=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",q.letterSpacing,"1.5px"),Dt=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",q.lineHeight,"1.6"),Ft=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",q.textTransform,"uppercase"),Ht=i.FtCssVariableFactory.extend("--ft-typography-button-font-family",L),Pt=i.FtCssVariableFactory.extend("--ft-typography-button-font-size",q.fontSize,"14px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",q.fontWeight,"600"),Lt=i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",q.letterSpacing,"1.246px"),qt=i.FtCssVariableFactory.extend("--ft-typography-button-line-height",q.lineHeight,"1.15"),Jt=i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",q.textTransform,"uppercase"),Qt=e.css`
|
|
14
14
|
.ft-typography--title {
|
|
15
|
-
font-family: ${
|
|
15
|
+
font-family: ${J};
|
|
16
16
|
font-size: ${Q};
|
|
17
17
|
font-weight: ${V};
|
|
18
18
|
letter-spacing: ${X};
|
|
@@ -67,25 +67,25 @@ const R=Symbol.for(""),W=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
67
67
|
}
|
|
68
68
|
`,ei=e.css`
|
|
69
69
|
.ft-typography--caption {
|
|
70
|
-
font-family: ${
|
|
71
|
-
font-size: ${
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
74
|
-
line-height: ${
|
|
75
|
-
text-transform: ${
|
|
70
|
+
font-family: ${Zt.fontFamily};
|
|
71
|
+
font-size: ${Zt.fontSize};
|
|
72
|
+
font-weight: ${Zt.fontWeight};
|
|
73
|
+
letter-spacing: ${Zt.letterSpacing};
|
|
74
|
+
line-height: ${Zt.lineHeight};
|
|
75
|
+
text-transform: ${Zt.textTransform};
|
|
76
76
|
}
|
|
77
77
|
`,oi=e.css`
|
|
78
78
|
.ft-typography--breadcrumb {
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
79
|
+
font-family: ${Ut};
|
|
80
|
+
font-size: ${jt};
|
|
81
|
+
font-weight: ${kt};
|
|
82
|
+
letter-spacing: ${Mt};
|
|
83
83
|
line-height: ${Ot};
|
|
84
|
-
text-transform: ${
|
|
84
|
+
text-transform: ${Bt};
|
|
85
85
|
}
|
|
86
86
|
`,ni=e.css`
|
|
87
87
|
.ft-typography--overline {
|
|
88
|
-
font-family: ${
|
|
88
|
+
font-family: ${Ct};
|
|
89
89
|
font-size: ${Rt};
|
|
90
90
|
font-weight: ${Wt};
|
|
91
91
|
letter-spacing: ${Gt};
|
|
@@ -95,11 +95,11 @@ const R=Symbol.for(""),W=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
95
95
|
`,ri=e.css`
|
|
96
96
|
.ft-typography--button {
|
|
97
97
|
font-family: ${Ht};
|
|
98
|
-
font-size: ${
|
|
99
|
-
font-weight: ${
|
|
100
|
-
letter-spacing: ${
|
|
101
|
-
line-height: ${
|
|
102
|
-
text-transform: ${
|
|
98
|
+
font-size: ${Pt};
|
|
99
|
+
font-weight: ${Kt};
|
|
100
|
+
letter-spacing: ${Lt};
|
|
101
|
+
line-height: ${qt};
|
|
102
|
+
text-transform: ${Jt};
|
|
103
103
|
}
|
|
104
104
|
`;class li extends i.FtLitElement{constructor(){super(...arguments),this.variant=H.body1}render(){return this.element?F`
|
|
105
105
|
<${G(this.element)}
|
|
@@ -112,7 +112,7 @@ const R=Symbol.for(""),W=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
112
112
|
.ft-typography {
|
|
113
113
|
vertical-align: inherit;
|
|
114
114
|
}
|
|
115
|
-
`],
|
|
115
|
+
`],P([o.property()],li.prototype,"element",void 0),P([o.property()],li.prototype,"variant",void 0),i.customElement("ft-typography")(li);var si=function(t,i,e,o){for(var n,r=arguments.length,l=r<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,s=t.length-1;s>=0;s--)(n=t[s])&&(l=(r<3?n(l):r>3?n(i,e,l):n(i,e))||l);return r>3&&l&&Object.defineProperty(i,e,l),l};const ai={fontSize:i.FtCssVariableFactory.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:i.FtCssVariableFactory.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:i.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:i.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:i.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:i.FtCssVariableFactory.extend("--ft-input-label-border-color",i.designSystemVariables.colorOutline),textColor:i.FtCssVariableFactory.extend("--ft-input-label-text-color",i.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:i.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color",i.designSystemVariables.colorOnSurfaceDisabled),colorSurface:i.FtCssVariableFactory.external(i.designSystemVariables.colorSurface,"Design system"),borderRadiusS:i.FtCssVariableFactory.external(i.designSystemVariables.borderRadiusS,"Design system"),colorError:i.FtCssVariableFactory.external(i.designSystemVariables.colorError,"Design system")};class pi extends i.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error};return e.html`
|
|
116
116
|
<div class="${n.classMap(t)}">
|
|
117
117
|
${this.text?e.html`
|
|
118
118
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -170,8 +170,8 @@ const R=Symbol.for(""),W=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
170
170
|
border-color: inherit;
|
|
171
171
|
color: ${ai.textColor};
|
|
172
172
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
173
|
-
${i.setVariable(
|
|
174
|
-
${i.setVariable(
|
|
173
|
+
${i.setVariable(Zt.fontSize,ai.fontSize)};
|
|
174
|
+
${i.setVariable(Zt.lineHeight,ai.fontSize)};
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -191,7 +191,6 @@ const R=Symbol.for(""),W=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
191
191
|
position: absolute;
|
|
192
192
|
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
193
193
|
transition: top 250ms;
|
|
194
|
-
width: calc(100% - 8px);
|
|
195
194
|
overflow: hidden;
|
|
196
195
|
white-space: nowrap;
|
|
197
196
|
text-overflow: ellipsis;
|
|
@@ -200,8 +199,8 @@ const R=Symbol.for(""),W=t=>{var i,e;if((null===(i=t)||void 0===i?void 0:i.r)===
|
|
|
200
199
|
}
|
|
201
200
|
|
|
202
201
|
.ft-input-label--raised .ft-input-label--text {
|
|
203
|
-
${i.setVariable(
|
|
204
|
-
${i.setVariable(
|
|
202
|
+
${i.setVariable(Zt.fontSize,ai.raisedFontSize)};
|
|
203
|
+
${i.setVariable(Zt.lineHeight,ai.raisedFontSize)};
|
|
205
204
|
}
|
|
206
205
|
|
|
207
206
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -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,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.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=l;if(e)return l=void 0,e;const i=s.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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?d(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i)=>{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&&a.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(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!==n.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 r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(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,n=new WeakMap,r=new WeakMap,s=new WeakMap,a=new WeakMap;let l;window.CustomElementRegistry=class{constructor(){this._definitionsByTag=new Map,this._definitionsByClass=new Map,this._whenDefinedPromises=new Map,this._awaitingUpgrade=new Map}define(t,n){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(n))throw new DOMException("Failed to execute 'define' on 'CustomElementRegistry': this constructor has already been used with this registry");const a=n.prototype.attributeChangedCallback,l=new Set(n.observedAttributes||[]);f(n,l,a);const h={elementClass:n,connectedCallback:n.prototype.connectedCallback,disconnectedCallback:n.prototype.disconnectedCallback,adoptedCallback:n.prototype.adoptedCallback,attributeChangedCallback:a,formAssociated:n.formAssociated,formAssociatedCallback:n.prototype.formAssociatedCallback,formDisabledCallback:n.prototype.formDisabledCallback,formResetCallback:n.prototype.formResetCallback,formStateRestoreCallback:n.prototype.formStateRestoreCallback,observedAttributes:l};this._definitionsByTag.set(t,h),this._definitionsByClass.set(n,h);let c=i.call(o,t);c||(c=p(t),e.call(o,t,c)),this===window.customElements&&(s.set(n,h),h.standInClass=c);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,h,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){g.push(this),o.upgrade.apply(o,arguments),g.pop()}get(t){return this._definitionsByTag.get(t)?.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=l;if(e)return l=void 0,e;const i=s.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),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const h=t=>t===document||t instanceof ShadowRoot,c=t=>{let e=t.getRootNode();if(!h(e)){const t=g[g.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),h(e)||(e=a.get(e)?.getRootNode()||document)}return e.customElements},p=e=>class{static get formAssociated(){return!0}constructor(){const i=Reflect.construct(t,[],this.constructor);Object.setPrototypeOf(i,HTMLElement.prototype);const o=c(i)||window.customElements,n=o._getDefinition(e);return n?d(i,n):r.set(i,o),i}connectedCallback(){const t=n.get(this);t?t.connectedCallback&&t.connectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!0)}disconnectedCallback(){const t=n.get(this);t?t.disconnectedCallback&&t.disconnectedCallback.apply(this,arguments):r.get(this)._upgradeWhenDefined(this,e,!1)}adoptedCallback(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(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)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let g=[document];const b=(t,e,i)=>{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&&a.set(t,this),g.pop(),t}};b(ShadowRoot,"createElement",document),b(ShadowRoot,"importNode",document),b(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!==n.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 r{constructor(t){const e=new Map;t.forEach(((t,i)=>{const o=t.getAttribute("name"),n=e.get(o)||[];this[+i]=t,n.push(t),e.set(o,n)})),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 s=Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,"elements");Object.defineProperty(HTMLFormElement.prototype,"elements",{get:function(){const t=s.get.call(this,[]),e=[];for(const i of t){const t=n.get(i);t&&!0!==t.formAssociated||e.push(i)}return new r(e)}})}}try{window.customElements.define("custom-element",null)}catch(dt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{try{t.bind(window.customElements)(e,i,o)}catch(t){console.warn(e,i,o,t)}}}
|
|
18
18
|
/**
|
|
19
19
|
* @license
|
|
20
20
|
* Copyright 2017 Google LLC
|
|
@@ -30,30 +30,30 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
30
30
|
* Copyright 2019 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
const r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),a=new
|
|
33
|
+
const r=window.ShadowRoot&&(void 0===window.ShadyCSS||window.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s=Symbol(),a=new WeakMap;class l{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(r&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=a.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&a.set(e,t))}return t}toString(){return this.cssText}}const h=t=>new l("string"==typeof t?t:t+"",void 0,s),c=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1]),t[0]);return new l(i,t,s)},p=(t,e)=>{r?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=window.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},f=r?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return h(e)})(t):t
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2017 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
|
-
*/;var u;const d=window.trustedTypes,y=d?d.emptyScript:"",g=window.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},v=(t,e)=>e!==t&&(e==e||t==t),x={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:v};class m extends HTMLElement{constructor(){super(),this._$
|
|
38
|
+
*/;var u;const d=window.trustedTypes,y=d?d.emptyScript:"",g=window.reactiveElementPolyfillSupport,b={toAttribute(t,e){switch(e){case Boolean:t=t?y:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},v=(t,e)=>e!==t&&(e==e||t==t),x={attribute:!0,type:String,converter:b,reflect:!1,hasChanged:v};class m extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=x){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i="symbol"==typeof t?Symbol():"__"+t,o=this.getPropertyDescriptor(t,i,e);void 0!==o&&Object.defineProperty(this.prototype,t,o)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(o){const n=this[t];this[e]=o,this.requestUpdate(t,n,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||x}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(f(t))}else void 0!==t&&e.push(f(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return p(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=x){var o,n;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const s=(null!==(n=null===(o=i.converter)||void 0===o?void 0:o.toAttribute)&&void 0!==n?n:b.toAttribute)(e,i.type);this._$El=t,null==s?this.removeAttribute(r):this.setAttribute(r,s),this._$El=null}}_$AK(t,e){var i,o;const n=this.constructor,r=n._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=n.getPropertyOptions(r),s=t.converter,a=null!==(o=null!==(i=null==s?void 0:s.fromAttribute)&&void 0!==i?i:"function"==typeof s?s:null)&&void 0!==o?o:b.fromAttribute;this._$El=r,this[r]=a(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||v)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,i))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
41
41
|
* Copyright 2017 Google LLC
|
|
42
42
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
43
43
|
*/
|
|
44
|
-
var w;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:m}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.3.
|
|
44
|
+
var w;m.finalized=!0,m.elementProperties=new Map,m.elementStyles=[],m.shadowRootOptions={mode:"open"},null==g||g({ReactiveElement:m}),(null!==(u=globalThis.reactiveElementVersions)&&void 0!==u?u:globalThis.reactiveElementVersions=[]).push("1.3.4");const $=globalThis.trustedTypes,O=$?$.createPolicy("lit-html",{createHTML:t=>t}):void 0,S=`lit$${(Math.random()+"").slice(9)}$`,N="?"+S,E=`<${N}>`,R=document,C=(t="")=>R.createComment(t),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,k=/-->/g,z=/>/g,A=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),L=/'/g,P=/"/g,T=/^(?:script|style|textarea|title)$/i,B=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),j=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),D=new WeakMap,W=R.createTreeWalker(R,129,null,!1),H=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=F;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(s.lastIndex=c,l=s.exec(i),null!==l);)c=s.lastIndex,s===F?"!--"===l[1]?s=k:void 0!==l[1]?s=z:void 0!==l[2]?(T.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=A):void 0!==l[3]&&(s=A):s===A?">"===l[0]?(s=null!=n?n:F,h=-1):void 0===l[1]?h=-2:(h=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?A:'"'===l[3]?P:L):s===P||s===L?s=A:s===k||s===z?s=F:(s=A,n=void 0);const p=s===A&&t[e+1].startsWith("/>")?" ":"";r+=s===F?i+E:h>=0?(o.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+S+p):i+S+(-2===h?(o.push(void 0),e):p)}const a=r+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==O?O.createHTML(a):a,o]};class I{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,h]=H(t,e);if(this.el=I.createElement(l,i),W.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=W.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(S)){const i=h[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(S),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?X:"?"===e[1]?G:"@"===e[1]?Q:J})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(T.test(o.tagName)){const t=o.textContent.split(S),e=t.length-1;if(e>0){o.textContent=$?$.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],C()),W.nextNode(),a.push({type:2,index:++n});o.append(t[e],C())}}}else if(8===o.nodeType)if(o.data===N)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(S,t+1));)a.push({type:7,index:n}),t+=S.length-1}n++}}static createElement(t,e){const i=R.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,o){var n,r,s,a;if(e===j)return e;let l=void 0!==o?null===(n=i._$Cl)||void 0===n?void 0:n[o]:i._$Cu;const h=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Cl)&&void 0!==s?s:a._$Cl=[])[o]=l:i._$Cu=l),void 0!==l&&(e=K(t,l._$AS(t,e.values),l,o)),e}class Z{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:R).importNode(i,!0);W.currentNode=n;let r=W.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new V(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new Y(r,this,t)),this.v.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=W.nextNode(),s++)}return n}m(t){let e=0;for(const i of this.v)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class V{constructor(t,e,i,o){var n;this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$C_=null===(n=null==o?void 0:o.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),M(t)?t===_||null==t||""===t?(this._$AH!==_&&this._$AR(),this._$AH=_):t!==this._$AH&&t!==j&&this.T(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.k(t):(t=>U(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.S(t):this.T(t)}j(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.j(t))}T(t){this._$AH!==_&&M(this._$AH)?this._$AA.nextSibling.data=t:this.k(R.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=I.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(i);else{const t=new Z(n,this),e=t.p(this.options);t.m(i),this.k(e),this._$AH=t}}_$AC(t){let e=D.get(t.strings);return void 0===e&&D.set(t.strings,e=new I(t)),e}S(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const n of t)o===e.length?e.push(i=new V(this.j(C()),this.j(C()),this,this.options)):i=e[o],i._$AI(n),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o)}_$AR(t=this._$AA.nextSibling,e){var i;for(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class J{constructor(t,e,i,o,n){this.type=1,this._$AH=_,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=n,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let r=!1;if(void 0===n)t=K(this,t,e,0),r=!M(t)||t!==this._$AH&&t!==j,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=K(this,o[i+s],e,s),a===j&&(a=this._$AH[s]),r||(r=!M(a)||a!==this._$AH[s]),a===_?t=_:t!==_&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.P(t)}P(t){t===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class X extends J{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===_?void 0:t}}const q=$?$.emptyScript:"";class G extends J{constructor(){super(...arguments),this.type=4}P(t){t&&t!==_?this.element.setAttribute(this.name,q):this.element.removeAttribute(this.name)}}class Q extends J{constructor(t,e,i,o,n){super(t,e,i,o,n),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=K(this,t,e,0))&&void 0!==i?i:_)===j)return;const o=this._$AH,n=t===_&&o!==_||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==_&&(o===_||n);n&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class Y{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){K(this,t)}}const tt=window.litHtmlPolyfillSupport;
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var et,it;null==tt||tt(I,V),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.2.
|
|
50
|
+
var et,it;null==tt||tt(I,V),(null!==(w=globalThis.litHtmlVersions)&&void 0!==w?w:globalThis.litHtmlVersions=[]).push("2.2.7");class ot extends m{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,n;const r=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:e;let s=r._$litPart$;if(void 0===s){const t=null!==(n=null==i?void 0:i.renderBefore)&&void 0!==n?n:null;r._$litPart$=s=new V(e.insertBefore(C(),t),t,void 0,null!=i?i:{})}return s._$AI(t),s})(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 j}}ot.finalized=!0,ot._$litElement$=!0,null===(et=globalThis.litElementHydrateSupport)||void 0===et||et.call(globalThis,{LitElement:ot});const nt=globalThis.litElementPolyfillSupport;null==nt||nt({LitElement:ot}),(null!==(it=globalThis.litElementVersions)&&void 0!==it?it:globalThis.litElementVersions=[]).push("3.2.2");class rt{static create(t,e,i){let o=t=>h(null!=t?t:i),n=c`var(${h(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>c`var(${h(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=c`var(${h(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>c`var(${h(t)}, ${o(e)})`,n.breadcrumb=()=>[e.name,...e.breadcrumb()],n.lastResortDefaultValue=()=>i,n}static external(t,e){let i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):h(null!=e?e:t.defaultValue),o=c`var(${h(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=>c`var(${h(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 st(t,e){return h(`${t.name}: ${e}`)}const at={colorPrimary:rt.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:rt.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:rt.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:rt.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:rt.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:rt.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:rt.create("--ft-color-error","COLOR","#B00020"),colorOutline:rt.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:rt.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:rt.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:rt.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:rt.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:rt.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:rt.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:rt.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:rt.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:rt.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:rt.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:rt.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:rt.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:rt.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:rt.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:rt.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:rt.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:rt.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:rt.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:rt.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:rt.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:rt.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:rt.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:rt.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:rt.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:rt.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:rt.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:rt.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:rt.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:rt.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:rt.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:rt.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:rt.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:rt.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:rt.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:rt.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:rt.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.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:rt.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:rt.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:rt.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:rt.create("--ft-border-radius-XL","SIZE","16px"),titleFont:rt.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:rt.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:rt.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:rt.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2021 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
|
-
*/var lt,ht,ct=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class pt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return p(n,this.constructor.elementStyles),n}}}(ot)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),
|
|
56
|
-
${t.map((t=>
|
|
55
|
+
*/var lt,ht,ct=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};class pt extends(function(t){return class extends t{createRenderRoot(){const t=this.constructor,{registry:e,elementDefinitions:i,shadowRootOptions:o}=t;i&&!e&&(t.registry=new CustomElementRegistry,Object.entries(i).forEach((([e,i])=>t.registry.define(e,i))));const n=this.renderOptions.creationScope=this.attachShadow({...o,customElements:t.registry});return p(n,this.constructor.elementStyles),n}}}(ot)){getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),B`
|
|
56
|
+
${t.map((t=>B`
|
|
57
57
|
<style>${t}</style>
|
|
58
58
|
`))}
|
|
59
59
|
${this.getTemplate()}
|
|
@@ -78,18 +78,18 @@ const ft=1;
|
|
|
78
78
|
* Copyright 2018 Google LLC
|
|
79
79
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
80
80
|
*/
|
|
81
|
-
const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{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)}}{constructor(t){var e;if(super(t),t.type!==ft||"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.
|
|
81
|
+
const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{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)}}{constructor(t){var e;if(super(t),t.type!==ft||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var i,o;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(i=this.st)||void 0===i?void 0:i.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const i=!!e[t];i===this.nt.has(t)||(null===(o=this.st)||void 0===o?void 0:o.has(t))||(i?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return j}}),dt=Symbol.for(""),yt=t=>{if((null==t?void 0:t.r)===dt)return null==t?void 0:t._$litStatic$},gt=t=>({_$litStatic$:t,r:dt}),bt=new Map,vt=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,h=0,c=!1;for(;h<o;){for(l=e[h];h<o&&void 0!==(r=i[h],n=yt(r));)l+=n+e[++h],c=!0;a.push(r),s.push(l),h++}if(h===o&&s.push(e[o]),c){const t=s.join("$$lit$$");void 0===(e=bt.get(t))&&(s.raw=s,bt.set(t,e=s)),i=a}return t(e,...i)})(B);
|
|
82
82
|
/**
|
|
83
83
|
* @license
|
|
84
84
|
* Copyright 2020 Google LLC
|
|
85
85
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
86
|
-
*/var xt,mt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(xt||(xt={}));const wt=rt.extend("--ft-typography-font-family",at.titleFont),$t=rt.extend("--ft-typography-font-family",at.contentFont),Ot={fontFamily:$t,fontSize:rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:rt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},St=rt.extend("--ft-typography-title-font-family",wt),Nt=rt.extend("--ft-typography-title-font-size",Ot.fontSize,"20px"),Et=rt.extend("--ft-typography-title-font-weight",Ot.fontWeight,"normal"),
|
|
86
|
+
*/var xt,mt=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};!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"}(xt||(xt={}));const wt=rt.extend("--ft-typography-font-family",at.titleFont),$t=rt.extend("--ft-typography-font-family",at.contentFont),Ot={fontFamily:$t,fontSize:rt.create("--ft-typography-font-size","SIZE","16px"),fontWeight:rt.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:rt.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:rt.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:rt.create("--ft-typography-text-transform","UNKNOWN","inherit")},St=rt.extend("--ft-typography-title-font-family",wt),Nt=rt.extend("--ft-typography-title-font-size",Ot.fontSize,"20px"),Et=rt.extend("--ft-typography-title-font-weight",Ot.fontWeight,"normal"),Rt=rt.extend("--ft-typography-title-letter-spacing",Ot.letterSpacing,"0.15px"),Ct=rt.extend("--ft-typography-title-line-height",Ot.lineHeight,"1.2"),Mt=rt.extend("--ft-typography-title-text-transform",Ot.textTransform,"inherit"),Ut=rt.extend("--ft-typography-title-dense-font-family",wt),Ft=rt.extend("--ft-typography-title-dense-font-size",Ot.fontSize,"14px"),kt=rt.extend("--ft-typography-title-dense-font-weight",Ot.fontWeight,"normal"),zt=rt.extend("--ft-typography-title-dense-letter-spacing",Ot.letterSpacing,"0.105px"),At=rt.extend("--ft-typography-title-dense-line-height",Ot.lineHeight,"1.7"),Lt=rt.extend("--ft-typography-title-dense-text-transform",Ot.textTransform,"inherit"),Pt=rt.extend("--ft-typography-subtitle1-font-family",$t),Tt=rt.extend("--ft-typography-subtitle1-font-size",Ot.fontSize,"16px"),Bt=rt.extend("--ft-typography-subtitle1-font-weight",Ot.fontWeight,"600"),jt=rt.extend("--ft-typography-subtitle1-letter-spacing",Ot.letterSpacing,"0.144px"),_t=rt.extend("--ft-typography-subtitle1-line-height",Ot.lineHeight,"1.5"),Dt=rt.extend("--ft-typography-subtitle1-text-transform",Ot.textTransform,"inherit"),Wt=rt.extend("--ft-typography-subtitle2-font-family",$t),Ht=rt.extend("--ft-typography-subtitle2-font-size",Ot.fontSize,"14px"),It=rt.extend("--ft-typography-subtitle2-font-weight",Ot.fontWeight,"normal"),Kt=rt.extend("--ft-typography-subtitle2-letter-spacing",Ot.letterSpacing,"0.098px"),Zt=rt.extend("--ft-typography-subtitle2-line-height",Ot.lineHeight,"1.7"),Vt=rt.extend("--ft-typography-subtitle2-text-transform",Ot.textTransform,"inherit"),Jt=rt.extend("--ft-typography-body1-font-family",$t),Xt=rt.extend("--ft-typography-body1-font-size",Ot.fontSize,"16px"),qt=rt.extend("--ft-typography-body1-font-weight",Ot.fontWeight,"normal"),Gt=rt.extend("--ft-typography-body1-letter-spacing",Ot.letterSpacing,"0.496px"),Qt=rt.extend("--ft-typography-body1-line-height",Ot.lineHeight,"1.5"),Yt=rt.extend("--ft-typography-body1-text-transform",Ot.textTransform,"inherit"),te=rt.extend("--ft-typography-body2-font-family",$t),ee=rt.extend("--ft-typography-body2-font-size",Ot.fontSize,"14px"),ie=rt.extend("--ft-typography-body2-font-weight",Ot.fontWeight,"normal"),oe=rt.extend("--ft-typography-body2-letter-spacing",Ot.letterSpacing,"0.252px"),ne=rt.extend("--ft-typography-body2-line-height",Ot.lineHeight,"1.4"),re=rt.extend("--ft-typography-body2-text-transform",Ot.textTransform,"inherit"),se={fontFamily:rt.extend("--ft-typography-caption-font-family",$t),fontSize:rt.extend("--ft-typography-caption-font-size",Ot.fontSize,"12px"),fontWeight:rt.extend("--ft-typography-caption-font-weight",Ot.fontWeight,"normal"),letterSpacing:rt.extend("--ft-typography-caption-letter-spacing",Ot.letterSpacing,"0.396px"),lineHeight:rt.extend("--ft-typography-caption-line-height",Ot.lineHeight,"1.33"),textTransform:rt.extend("--ft-typography-caption-text-transform",Ot.textTransform,"inherit")},ae=rt.extend("--ft-typography-breadcrumb-font-family",$t),le=rt.extend("--ft-typography-breadcrumb-font-size",Ot.fontSize,"10px"),he=rt.extend("--ft-typography-breadcrumb-font-weight",Ot.fontWeight,"normal"),ce=rt.extend("--ft-typography-breadcrumb-letter-spacing",Ot.letterSpacing,"0.33px"),pe=rt.extend("--ft-typography-breadcrumb-line-height",Ot.lineHeight,"1.6"),fe=rt.extend("--ft-typography-breadcrumb-text-transform",Ot.textTransform,"inherit"),ue=rt.extend("--ft-typography-overline-font-family",$t),de=rt.extend("--ft-typography-overline-font-size",Ot.fontSize,"10px"),ye=rt.extend("--ft-typography-overline-font-weight",Ot.fontWeight,"normal"),ge=rt.extend("--ft-typography-overline-letter-spacing",Ot.letterSpacing,"1.5px"),be=rt.extend("--ft-typography-overline-line-height",Ot.lineHeight,"1.6"),ve=rt.extend("--ft-typography-overline-text-transform",Ot.textTransform,"uppercase"),xe=rt.extend("--ft-typography-button-font-family",$t),me=rt.extend("--ft-typography-button-font-size",Ot.fontSize,"14px"),we=rt.extend("--ft-typography-button-font-weight",Ot.fontWeight,"600"),$e=rt.extend("--ft-typography-button-letter-spacing",Ot.letterSpacing,"1.246px"),Oe=rt.extend("--ft-typography-button-line-height",Ot.lineHeight,"1.15"),Se=rt.extend("--ft-typography-button-text-transform",Ot.textTransform,"uppercase"),Ne=c`
|
|
87
87
|
.ft-typography--title {
|
|
88
88
|
font-family: ${St};
|
|
89
89
|
font-size: ${Nt};
|
|
90
90
|
font-weight: ${Et};
|
|
91
|
-
letter-spacing: ${
|
|
92
|
-
line-height: ${
|
|
91
|
+
letter-spacing: ${Rt};
|
|
92
|
+
line-height: ${Ct};
|
|
93
93
|
text-transform: ${Mt};
|
|
94
94
|
}
|
|
95
95
|
`,Ee=c`
|
|
@@ -101,16 +101,16 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
101
101
|
line-height: ${At};
|
|
102
102
|
text-transform: ${Lt};
|
|
103
103
|
}
|
|
104
|
-
`,
|
|
104
|
+
`,Re=c`
|
|
105
105
|
.ft-typography--subtitle1 {
|
|
106
|
-
font-family: ${
|
|
107
|
-
font-size: ${
|
|
108
|
-
font-weight: ${
|
|
109
|
-
letter-spacing: ${
|
|
110
|
-
line-height: ${
|
|
106
|
+
font-family: ${Pt};
|
|
107
|
+
font-size: ${Tt};
|
|
108
|
+
font-weight: ${Bt};
|
|
109
|
+
letter-spacing: ${jt};
|
|
110
|
+
line-height: ${_t};
|
|
111
111
|
text-transform: ${Dt};
|
|
112
112
|
}
|
|
113
|
-
`,
|
|
113
|
+
`,Ce=c`
|
|
114
114
|
.ft-typography--subtitle2 {
|
|
115
115
|
font-family: ${Wt};
|
|
116
116
|
font-size: ${Ht};
|
|
@@ -181,38 +181,38 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
181
181
|
</${gt(this.element)}>
|
|
182
182
|
`:vt`
|
|
183
183
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
184
|
-
`}}Le.styles=[Ne,Ee,Ce,
|
|
184
|
+
`}}Le.styles=[Ne,Ee,Re,Ce,Me,Ue,Fe,ke,ze,Ae,c`
|
|
185
185
|
.ft-typography {
|
|
186
186
|
vertical-align: inherit;
|
|
187
187
|
}
|
|
188
|
-
`],mt([i()],Le.prototype,"element",void 0),mt([i()],Le.prototype,"variant",void 0),n("ft-typography")(Le);var
|
|
188
|
+
`],mt([i()],Le.prototype,"element",void 0),mt([i()],Le.prototype,"variant",void 0),n("ft-typography")(Le);var Pe=function(t,e,i,o){for(var n,r=arguments.length,s=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(s=(r<3?n(s):r>3?n(e,i,s):n(e,i))||s);return r>3&&s&&Object.defineProperty(e,i,s),s};const Te={fontSize:rt.create("--ft-input-label-font-size","SIZE","14px"),raisedFontSize:rt.create("--ft-input-label-raised-font-size","SIZE","11px"),raisedZIndex:rt.create("--ft-input-label-outlined-raised-z-index","NUMBER","2"),verticalSpacing:rt.create("--ft-input-label-vertical-spacing","SIZE","4px"),horizontalSpacing:rt.create("--ft-input-label-horizontal-spacing","SIZE","12px"),borderColor:rt.extend("--ft-input-label-border-color",at.colorOutline),textColor:rt.extend("--ft-input-label-text-color",at.colorOnSurfaceMedium),disabledTextColor:rt.extend("--ft-input-label-disabled-text-color",at.colorOnSurfaceDisabled),colorSurface:rt.external(at.colorSurface,"Design system"),borderRadiusS:rt.external(at.borderRadiusS,"Design system"),colorError:rt.external(at.colorError,"Design system")};class Be extends pt{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 B`
|
|
189
189
|
<div class="${ut(t)}">
|
|
190
|
-
${this.text?
|
|
190
|
+
${this.text?B`
|
|
191
191
|
<div class="ft-input-label--text ft-typography--caption">
|
|
192
192
|
<span class="ft-input-label--floating-text">${this.text}</span>
|
|
193
193
|
<span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
|
|
194
194
|
</div>
|
|
195
195
|
`:null}
|
|
196
196
|
</div>
|
|
197
|
-
`}}
|
|
197
|
+
`}}Be.elementDefinitions={},Be.styles=[Fe,c`
|
|
198
198
|
.ft-input-label {
|
|
199
199
|
position: absolute;
|
|
200
200
|
inset: 0;
|
|
201
201
|
display: flex;
|
|
202
|
-
background-color: ${
|
|
203
|
-
border-radius: ${
|
|
202
|
+
background-color: ${Te.colorSurface};
|
|
203
|
+
border-radius: ${Te.borderRadiusS} ${Te.borderRadiusS} 0 0;
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
.ft-input-label--outlined {
|
|
207
|
-
border-radius: ${
|
|
207
|
+
border-radius: ${Te.borderRadiusS};
|
|
208
208
|
}
|
|
209
209
|
|
|
210
210
|
.ft-input-label {
|
|
211
|
-
border-color: ${
|
|
211
|
+
border-color: ${Te.borderColor};
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
.ft-input-label.ft-input-label--in-error {
|
|
215
|
-
border-color: ${
|
|
215
|
+
border-color: ${Te.colorError}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
218
|
.ft-input-label:before,
|
|
@@ -225,7 +225,7 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
.ft-input-label:before {
|
|
228
|
-
width: ${
|
|
228
|
+
width: ${Te.horizontalSpacing};
|
|
229
229
|
flex-shrink: 0;
|
|
230
230
|
}
|
|
231
231
|
|
|
@@ -241,18 +241,18 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
241
241
|
border-bottom-width: 1px;
|
|
242
242
|
border-bottom-style: solid;
|
|
243
243
|
border-color: inherit;
|
|
244
|
-
color: ${
|
|
244
|
+
color: ${Te.textColor};
|
|
245
245
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
246
|
-
${st(se.fontSize,
|
|
247
|
-
${st(se.lineHeight,
|
|
246
|
+
${st(se.fontSize,Te.fontSize)};
|
|
247
|
+
${st(se.lineHeight,Te.fontSize)};
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
.ft-input-label--in-error .ft-input-label--text {
|
|
251
|
-
color: ${
|
|
251
|
+
color: ${Te.colorError}
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
.ft-input-label--disabled .ft-input-label--text {
|
|
255
|
-
color: ${
|
|
255
|
+
color: ${Te.disabledTextColor};
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
.ft-input-label--hidden-text {
|
|
@@ -264,21 +264,20 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
264
264
|
position: absolute;
|
|
265
265
|
top: calc(50% - var(--ft-typography-caption-line-height) / 2);
|
|
266
266
|
transition: top 250ms;
|
|
267
|
-
width: calc(100% - 8px);
|
|
268
267
|
overflow: hidden;
|
|
269
268
|
white-space: nowrap;
|
|
270
269
|
text-overflow: ellipsis;
|
|
271
|
-
padding: ${
|
|
272
|
-
margin: calc(${
|
|
270
|
+
padding: ${Te.verticalSpacing} 4px;
|
|
271
|
+
margin: calc(${Te.verticalSpacing} * -1) 0;
|
|
273
272
|
}
|
|
274
273
|
|
|
275
274
|
.ft-input-label--raised .ft-input-label--text {
|
|
276
|
-
${st(se.fontSize,
|
|
277
|
-
${st(se.lineHeight,
|
|
275
|
+
${st(se.fontSize,Te.raisedFontSize)};
|
|
276
|
+
${st(se.lineHeight,Te.raisedFontSize)};
|
|
278
277
|
}
|
|
279
278
|
|
|
280
279
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
281
|
-
top: ${
|
|
280
|
+
top: ${Te.verticalSpacing};
|
|
282
281
|
}
|
|
283
282
|
|
|
284
283
|
.ft-input-label--outlined .ft-input-label--text,
|
|
@@ -291,24 +290,24 @@ const ut=(t=>(...e)=>({_$litDirective$:t,values:e}))(class extends class{constru
|
|
|
291
290
|
.ft-input-label--outlined:before {
|
|
292
291
|
border-left-width: 1px;
|
|
293
292
|
border-left-style: solid;
|
|
294
|
-
border-radius: ${
|
|
293
|
+
border-radius: ${Te.borderRadiusS} 0 0 ${Te.borderRadiusS};
|
|
295
294
|
}
|
|
296
295
|
|
|
297
296
|
.ft-input-label--outlined:after {
|
|
298
297
|
border-right-width: 1px;
|
|
299
298
|
border-right-style: solid;
|
|
300
|
-
border-radius: 0 ${
|
|
299
|
+
border-radius: 0 ${Te.borderRadiusS} ${Te.borderRadiusS} 0;
|
|
301
300
|
}
|
|
302
301
|
|
|
303
302
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
|
|
304
303
|
padding: 2px 4px;
|
|
305
|
-
z-index: ${
|
|
306
|
-
background-color: ${
|
|
307
|
-
border-radius: ${
|
|
304
|
+
z-index: ${Te.raisedZIndex};
|
|
305
|
+
background-color: ${Te.colorSurface};
|
|
306
|
+
border-radius: ${Te.borderRadiusS};
|
|
308
307
|
top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
|
|
309
308
|
}
|
|
310
309
|
|
|
311
310
|
.ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
|
|
312
311
|
border-top: none;
|
|
313
312
|
}
|
|
314
|
-
`],
|
|
313
|
+
`],Pe([i({type:String})],Be.prototype,"text",void 0),Pe([i({type:Boolean})],Be.prototype,"raised",void 0),Pe([i({type:Boolean})],Be.prototype,"outlined",void 0),Pe([i({type:Boolean})],Be.prototype,"disabled",void 0),Pe([i({type:Boolean})],Be.prototype,"error",void 0),n("ft-input-label")(Be),t.FtInputLabel=Be,t.FtInputLabelCssVariables=Te,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-input-label",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Dynamic label with outline",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-typography": "^0.
|
|
23
|
-
"@fluid-topics/ft-wc-utils": "^0.
|
|
24
|
-
"lit": "2.
|
|
22
|
+
"@fluid-topics/ft-typography": "^0.3.0",
|
|
23
|
+
"@fluid-topics/ft-wc-utils": "^0.3.0",
|
|
24
|
+
"lit": "2.2.8"
|
|
25
25
|
},
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "2019aceb4a578402211f951ec3d68dbc0acf25c7"
|
|
27
27
|
}
|