@fluid-topics/ft-notice 0.3.71 → 1.0.0-alpha.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-notice.css.d.ts +0 -1
- package/build/ft-notice.css.js +1 -2
- package/build/ft-notice.d.ts +0 -1
- package/build/ft-notice.js +2 -2
- package/build/ft-notice.light.js +96 -96
- package/build/ft-notice.min.js +110 -120
- package/build/ft-notice.properties.d.ts +0 -1
- package/build/ft-notice.properties.js +0 -1
- package/build/index.d.ts +0 -1
- package/build/index.js +0 -1
- package/package.json +6 -6
package/build/ft-notice.css.d.ts
CHANGED
package/build/ft-notice.css.js
CHANGED
|
@@ -15,7 +15,7 @@ export const styles = css `
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
ft-icon {
|
|
18
|
-
${setVariable(FtIconCssVariables.size, "
|
|
18
|
+
${setVariable(FtIconCssVariables.size, "24px")};
|
|
19
19
|
padding: 0 8px;
|
|
20
20
|
display: flex;
|
|
21
21
|
align-self: center;
|
|
@@ -37,4 +37,3 @@ export const styles = css `
|
|
|
37
37
|
border: 1px solid ${FtNoticeCssVariables.noticeColor};
|
|
38
38
|
}
|
|
39
39
|
`;
|
|
40
|
-
//# sourceMappingURL=ft-notice.css.js.map
|
package/build/ft-notice.d.ts
CHANGED
package/build/ft-notice.js
CHANGED
|
@@ -10,7 +10,7 @@ import { FtLitElement } from "@fluid-topics/ft-wc-utils";
|
|
|
10
10
|
import { FtIcon } from "@fluid-topics/ft-icon";
|
|
11
11
|
import { FtTypography } from "@fluid-topics/ft-typography";
|
|
12
12
|
import { styles } from "./ft-notice.css";
|
|
13
|
-
|
|
13
|
+
class FtNotice extends FtLitElement {
|
|
14
14
|
constructor() {
|
|
15
15
|
super(...arguments);
|
|
16
16
|
this.icon = "info";
|
|
@@ -36,4 +36,4 @@ FtNotice.styles = styles;
|
|
|
36
36
|
__decorate([
|
|
37
37
|
property({ type: String })
|
|
38
38
|
], FtNotice.prototype, "icon", void 0);
|
|
39
|
-
|
|
39
|
+
export { FtNotice };
|
package/build/ft-notice.light.js
CHANGED
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
font-family: ${a.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
33
33
|
|
|
34
34
|
/* Ugly fix because font is broken */
|
|
35
|
-
font-size: calc(0.
|
|
35
|
+
font-size: calc(0.75 * ${a.size});
|
|
36
36
|
position: relative;
|
|
37
|
-
top: -
|
|
37
|
+
top: -4%;
|
|
38
38
|
justify-content: center;
|
|
39
39
|
}
|
|
40
40
|
|
|
@@ -45,120 +45,120 @@
|
|
|
45
45
|
.ft-icon--material {
|
|
46
46
|
font-family: ${a.materialFontFamily}, "Material Icons", sans-serif;
|
|
47
47
|
}
|
|
48
|
-
`;var f;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(f||(f={}));var p
|
|
49
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
48
|
+
`;var f;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(f||(f={}));var h,p=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class x extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=i.nothing}render(){const t=this.variant&&Object.values(f).includes(this.variant)?this.variant:f.fluid_topics,e=t!==f.material||!!this.value;return i.html`
|
|
49
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
50
50
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
51
|
-
<slot ?hidden=${
|
|
51
|
+
<slot ?hidden=${e}></slot>
|
|
52
52
|
</i>
|
|
53
|
-
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case f.file_format:this.resolvedIcon=null!==(t=r[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case f.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=s[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}x.elementDefinitions={},x.styles=l,
|
|
53
|
+
`}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let o=this.value||this.textContent;switch(this.variant){case f.file_format:this.resolvedIcon=null!==(t=r[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case f.material:this.resolvedIcon=this.value||i.nothing;break;default:this.resolvedIcon=null!==(e=s[o.replace("-","_").toUpperCase()])&&void 0!==e?e:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}x.elementDefinitions={},x.styles=l,p([o.property()],x.prototype,"variant",void 0),p([o.property()],x.prototype,"value",void 0),p([o.state()],x.prototype,"resolvedIcon",void 0),p([o.query("slot")],x.prototype,"slottedContent",void 0),e.customElement("ft-icon")(x);const y=window,c=y.trustedTypes,g=c?c.createPolicy("lit-html",{createHTML:t=>t}):void 0,d="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,u="?"+m,v=`<${u}>`,b=document,$=()=>b.createComment(""),w=t=>null===t||"object"!=typeof t&&"function"!=typeof t,z=Array.isArray,N="[ \t\n\f\r]",j=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,A=/>/g,k=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),O=/'/g,S=/"/g,U=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),E=Symbol.for("lit-noChange"),F=Symbol.for("lit-nothing"),M=new WeakMap,T=b.createTreeWalker(b,129,null,!1),W=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=j;for(let e=0;e<i;e++){const i=t[e];let a,l,f=-1,h=0;for(;h<i.length&&(r.lastIndex=h,l=r.exec(i),null!==l);)h=r.lastIndex,r===j?"!--"===l[1]?r=_:void 0!==l[1]?r=A:void 0!==l[2]?(U.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=k):void 0!==l[3]&&(r=k):r===k?">"===l[0]?(r=null!=n?n:j,f=-1):void 0===l[1]?f=-2:(f=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?k:'"'===l[3]?S:O):r===S||r===O?r=k:r===_||r===A?r=j:(r=k,n=void 0);const p=r===k&&t[e+1].startsWith("/>")?" ":"";s+=r===j?i+v:f>=0?(o.push(a),i.slice(0,f)+d+i.slice(f)+m+p):i+m+(-2===f?(o.push(void 0),e):p)}const a=s+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==g?g.createHTML(a):a,o]};class C{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,s=0;const r=t.length-1,a=this.parts,[l,f]=W(t,e);if(this.el=C.createElement(l,i),T.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=T.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(d)||e.startsWith(m)){const i=f[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+d).split(m),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?q:"?"===e[1]?B:"@"===e[1]?D:G})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(U.test(o.tagName)){const t=o.textContent.split(m),e=t.length-1;if(e>0){o.textContent=c?c.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],$()),T.nextNode(),a.push({type:2,index:++n});o.append(t[e],$())}}}else if(8===o.nodeType)if(o.data===u)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(m,t+1));)a.push({type:7,index:n}),t+=m.length-1}n++}}static createElement(t,e){const i=b.createElement("template");return i.innerHTML=t,i}}function K(t,e,i=t,o){var n,s,r,a;if(e===E)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const f=w(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==f&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===f?l=void 0:(l=new f(t),l._$AT(t,i,o)),void 0!==o?(null!==(r=(a=i)._$Co)&&void 0!==r?r:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=K(t,l._$AS(t,e.values),l,o)),e}class R{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:b).importNode(i,!0);T.currentNode=n;let s=T.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Z(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new L(s,this,t)),this._$AV.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=T.nextNode(),r++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Z{constructor(t,e,i,o){var n;this.type=2,this._$AH=F,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=K(this,t,e),w(t)?t===F||null==t||""===t?(this._$AH!==F&&this._$AR(),this._$AH=F):t!==this._$AH&&t!==E&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>z(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==F&&w(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=C.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new R(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=M.get(t.strings);return void 0===e&&M.set(t.strings,e=new C(t)),e}T(t){z(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 Z(this.k($()),this.k($()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class G{constructor(t,e,i,o,n){this.type=1,this._$AH=F,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=F}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,o){const n=this.strings;let s=!1;if(void 0===n)t=K(this,t,e,0),s=!w(t)||t!==this._$AH&&t!==E,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=K(this,o[i+r],e,r),a===E&&(a=this._$AH[r]),s||(s=!w(a)||a!==this._$AH[r]),a===F?t=F:t!==F&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===F?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class q extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===F?void 0:t}}const H=c?c.emptyScript:"";class B extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==F?this.element.setAttribute(this.name,H):this.element.removeAttribute(this.name)}}class D extends G{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:F)===E)return;const o=this._$AH,n=t===F&&o!==F||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==F&&(o===F||n);n&&this.element.removeEventListener(this.name,this,o),s&&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 L{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 J=y.litHtmlPolyfillSupport;null==J||J(C,Z),(null!==(h=y.litHtmlVersions)&&void 0!==h?h:y.litHtmlVersions=[]).push("2.7.3");
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2020 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
const
|
|
59
|
+
const P=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===P)return null==t?void 0:t._$litStatic$},V=t=>({_$litStatic$:t,r:P}),X=new Map,Y=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,f=0,h=!1;for(;f<o;){for(l=e[f];f<o&&void 0!==(s=i[f],n=Q(s));)l+=n+e[++f],h=!0;f!==o&&a.push(s),r.push(l),f++}if(f===o&&r.push(e[o]),h){const t=r.join("$$lit$$");void 0===(e=X.get(t))&&(r.raw=r,X.set(t,e=r)),i=a}return t(e,...i)})(I);var tt;!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"}(tt||(tt={}));const et=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),it=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),ot={fontFamily:it,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",et),st=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",ot.fontSize,"20px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",ot.fontWeight,"normal"),at=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",ot.letterSpacing,"0.15px"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",ot.lineHeight,"1.2"),ft=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",ot.textTransform,"inherit"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",et),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",ot.fontSize,"14px"),xt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",ot.fontWeight,"normal"),yt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",ot.letterSpacing,"0.105px"),ct=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",ot.lineHeight,"1.7"),gt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",ot.textTransform,"inherit"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",it),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",ot.fontSize,"16px"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",ot.fontWeight,"600"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",ot.letterSpacing,"0.144px"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",ot.lineHeight,"1.5"),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",ot.textTransform,"inherit"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",it),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",ot.fontSize,"14px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",ot.fontWeight,"normal"),jt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",ot.letterSpacing,"0.098px"),_t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",ot.lineHeight,"1.7"),At=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",ot.textTransform,"inherit"),kt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",it),Ot=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",ot.fontSize,"16px"),St=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",ot.fontWeight,"normal"),Ut=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",ot.letterSpacing,"0.496px"),It=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",ot.lineHeight,"1.5"),Et=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",ot.textTransform,"inherit"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",it),Mt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",ot.fontSize,"14px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",ot.fontWeight,"normal"),Wt=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",ot.letterSpacing,"0.252px"),Ct=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",ot.lineHeight,"1.4"),Kt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",ot.textTransform,"inherit"),Rt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",it),Zt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",ot.fontSize,"12px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",ot.fontWeight,"normal"),qt=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",ot.letterSpacing,"0.396px"),Ht=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",ot.lineHeight,"1.33"),Bt=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",ot.textTransform,"inherit"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",it),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",ot.fontSize,"10px"),Jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",ot.fontWeight,"normal"),Pt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",ot.letterSpacing,"0.33px"),Qt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",ot.lineHeight,"1.6"),Vt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",ot.textTransform,"inherit"),Xt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",it),Yt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",ot.fontSize,"10px"),te=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",ot.fontWeight,"normal"),ee=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",ot.letterSpacing,"1.5px"),ie=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",ot.lineHeight,"1.6"),oe=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",ot.textTransform,"uppercase"),ne=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",it),se=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",ot.fontSize,"14px"),re=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",ot.fontWeight,"600"),ae=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",ot.letterSpacing,"1.246px"),le=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",ot.lineHeight,"1.15"),fe=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",ot.textTransform,"uppercase"),he=i.css`
|
|
60
60
|
.ft-typography--title {
|
|
61
|
-
font-family: ${
|
|
62
|
-
font-size: ${
|
|
63
|
-
font-weight: ${
|
|
64
|
-
letter-spacing: ${
|
|
65
|
-
line-height: ${
|
|
66
|
-
text-transform: ${
|
|
67
|
-
}
|
|
68
|
-
`,fe=i.css`
|
|
69
|
-
.ft-typography--title-dense {
|
|
70
|
-
font-family: ${lt};
|
|
71
|
-
font-size: ${ft};
|
|
72
|
-
font-weight: ${pt};
|
|
73
|
-
letter-spacing: ${ht};
|
|
74
|
-
line-height: ${xt};
|
|
75
|
-
text-transform: ${yt};
|
|
61
|
+
font-family: ${nt};
|
|
62
|
+
font-size: ${st};
|
|
63
|
+
font-weight: ${rt};
|
|
64
|
+
letter-spacing: ${at};
|
|
65
|
+
line-height: ${lt};
|
|
66
|
+
text-transform: ${ft};
|
|
76
67
|
}
|
|
77
68
|
`,pe=i.css`
|
|
78
|
-
.ft-typography--
|
|
79
|
-
font-family: ${
|
|
80
|
-
font-size: ${
|
|
81
|
-
font-weight: ${
|
|
82
|
-
letter-spacing: ${
|
|
83
|
-
line-height: ${
|
|
84
|
-
text-transform: ${
|
|
85
|
-
}
|
|
86
|
-
`,he=i.css`
|
|
87
|
-
.ft-typography--subtitle2 {
|
|
88
|
-
font-family: ${bt};
|
|
89
|
-
font-size: ${$t};
|
|
90
|
-
font-weight: ${wt};
|
|
91
|
-
letter-spacing: ${zt};
|
|
92
|
-
line-height: ${Nt};
|
|
93
|
-
text-transform: ${jt};
|
|
69
|
+
.ft-typography--title-dense {
|
|
70
|
+
font-family: ${ht};
|
|
71
|
+
font-size: ${pt};
|
|
72
|
+
font-weight: ${xt};
|
|
73
|
+
letter-spacing: ${yt};
|
|
74
|
+
line-height: ${ct};
|
|
75
|
+
text-transform: ${gt};
|
|
94
76
|
}
|
|
95
|
-
|
|
96
77
|
`,xe=i.css`
|
|
97
|
-
.ft-typography--
|
|
98
|
-
font-family: ${
|
|
99
|
-
font-size: ${
|
|
100
|
-
font-weight: ${
|
|
101
|
-
letter-spacing: ${
|
|
102
|
-
line-height: ${
|
|
103
|
-
text-transform: ${
|
|
78
|
+
.ft-typography--subtitle1 {
|
|
79
|
+
font-family: ${dt};
|
|
80
|
+
font-size: ${mt};
|
|
81
|
+
font-weight: ${ut};
|
|
82
|
+
letter-spacing: ${vt};
|
|
83
|
+
line-height: ${bt};
|
|
84
|
+
text-transform: ${$t};
|
|
104
85
|
}
|
|
105
86
|
`,ye=i.css`
|
|
106
|
-
.ft-typography--
|
|
107
|
-
font-family: ${
|
|
108
|
-
font-size: ${
|
|
109
|
-
font-weight: ${
|
|
110
|
-
letter-spacing: ${
|
|
111
|
-
line-height: ${
|
|
112
|
-
text-transform: ${
|
|
87
|
+
.ft-typography--subtitle2 {
|
|
88
|
+
font-family: ${wt};
|
|
89
|
+
font-size: ${zt};
|
|
90
|
+
font-weight: ${Nt};
|
|
91
|
+
letter-spacing: ${jt};
|
|
92
|
+
line-height: ${_t};
|
|
93
|
+
text-transform: ${At};
|
|
113
94
|
}
|
|
95
|
+
|
|
114
96
|
`,ce=i.css`
|
|
115
|
-
.ft-typography--
|
|
116
|
-
font-family: ${
|
|
117
|
-
font-size: ${
|
|
118
|
-
font-weight: ${
|
|
119
|
-
letter-spacing: ${
|
|
120
|
-
line-height: ${
|
|
121
|
-
text-transform: ${
|
|
97
|
+
.ft-typography--body1 {
|
|
98
|
+
font-family: ${kt};
|
|
99
|
+
font-size: ${Ot};
|
|
100
|
+
font-weight: ${St};
|
|
101
|
+
letter-spacing: ${Ut};
|
|
102
|
+
line-height: ${It};
|
|
103
|
+
text-transform: ${Et};
|
|
122
104
|
}
|
|
123
105
|
`,ge=i.css`
|
|
124
|
-
.ft-typography--
|
|
125
|
-
font-family: ${
|
|
126
|
-
font-size: ${
|
|
127
|
-
font-weight: ${
|
|
128
|
-
letter-spacing: ${
|
|
129
|
-
line-height: ${
|
|
130
|
-
text-transform: ${
|
|
106
|
+
.ft-typography--body2 {
|
|
107
|
+
font-family: ${Ft};
|
|
108
|
+
font-size: ${Mt};
|
|
109
|
+
font-weight: ${Tt};
|
|
110
|
+
letter-spacing: ${Wt};
|
|
111
|
+
line-height: ${Ct};
|
|
112
|
+
text-transform: ${Kt};
|
|
131
113
|
}
|
|
132
114
|
`,de=i.css`
|
|
133
|
-
.ft-typography--
|
|
134
|
-
font-family: ${
|
|
135
|
-
font-size: ${
|
|
136
|
-
font-weight: ${
|
|
137
|
-
letter-spacing: ${
|
|
138
|
-
line-height: ${
|
|
139
|
-
text-transform: ${
|
|
115
|
+
.ft-typography--caption {
|
|
116
|
+
font-family: ${Rt};
|
|
117
|
+
font-size: ${Zt};
|
|
118
|
+
font-weight: ${Gt};
|
|
119
|
+
letter-spacing: ${qt};
|
|
120
|
+
line-height: ${Ht};
|
|
121
|
+
text-transform: ${Bt};
|
|
140
122
|
}
|
|
141
123
|
`,me=i.css`
|
|
142
|
-
.ft-typography--
|
|
143
|
-
font-family: ${
|
|
144
|
-
font-size: ${
|
|
145
|
-
font-weight: ${
|
|
146
|
-
letter-spacing: ${
|
|
147
|
-
line-height: ${
|
|
148
|
-
text-transform: ${
|
|
124
|
+
.ft-typography--breadcrumb {
|
|
125
|
+
font-family: ${Dt};
|
|
126
|
+
font-size: ${Lt};
|
|
127
|
+
font-weight: ${Jt};
|
|
128
|
+
letter-spacing: ${Pt};
|
|
129
|
+
line-height: ${Qt};
|
|
130
|
+
text-transform: ${Vt};
|
|
149
131
|
}
|
|
150
132
|
`,ue=i.css`
|
|
133
|
+
.ft-typography--overline {
|
|
134
|
+
font-family: ${Xt};
|
|
135
|
+
font-size: ${Yt};
|
|
136
|
+
font-weight: ${te};
|
|
137
|
+
letter-spacing: ${ee};
|
|
138
|
+
line-height: ${ie};
|
|
139
|
+
text-transform: ${oe};
|
|
140
|
+
}
|
|
141
|
+
`,ve=i.css`
|
|
142
|
+
.ft-typography--button {
|
|
143
|
+
font-family: ${ne};
|
|
144
|
+
font-size: ${se};
|
|
145
|
+
font-weight: ${re};
|
|
146
|
+
letter-spacing: ${ae};
|
|
147
|
+
line-height: ${le};
|
|
148
|
+
text-transform: ${fe};
|
|
149
|
+
}
|
|
150
|
+
`,be=i.css`
|
|
151
151
|
.ft-typography {
|
|
152
152
|
vertical-align: inherit;
|
|
153
153
|
}
|
|
154
|
-
`;var
|
|
155
|
-
<${
|
|
154
|
+
`;var $e=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class we extends e.FtLitElement{constructor(){super(...arguments),this.variant=tt.body1}render(){return this.element?Y`
|
|
155
|
+
<${V(this.element)}
|
|
156
156
|
class="ft-typography ft-typography--${this.variant}">
|
|
157
157
|
<slot></slot>
|
|
158
|
-
</${
|
|
159
|
-
`:
|
|
158
|
+
</${V(this.element)}>
|
|
159
|
+
`:Y`
|
|
160
160
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
161
|
-
`}}
|
|
161
|
+
`}}we.styles=[he,pe,xe,ye,ce,ge,de,me,ue,ve,be],$e([o.property()],we.prototype,"element",void 0),$e([o.property()],we.prototype,"variant",void 0),e.customElement("ft-typography")(we);const ze={noticeColor:e.FtCssVariableFactory.extend("--ft-notice-color",e.designSystemVariables.colorPrimary),noticeIconColor:e.FtCssVariableFactory.extend("--ft-notice-icon-color",e.designSystemVariables.colorOnPrimary),borderRadius:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design System")},Ne=i.css`
|
|
162
162
|
.ft-notice {
|
|
163
163
|
display: inline-flex;
|
|
164
164
|
align-items: stretch;
|
|
@@ -166,28 +166,28 @@ const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
ft-icon {
|
|
169
|
-
${e.setVariable(a.size,"
|
|
169
|
+
${e.setVariable(a.size,"24px")};
|
|
170
170
|
padding: 0 8px;
|
|
171
171
|
display: flex;
|
|
172
172
|
align-self: center;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
175
|
.ft-icon {
|
|
176
|
-
color: ${
|
|
177
|
-
background-color: ${
|
|
176
|
+
color: ${ze.noticeIconColor};
|
|
177
|
+
background-color: ${ze.noticeColor};
|
|
178
178
|
display: flex;
|
|
179
179
|
align-items: center;
|
|
180
|
-
border-top-left-radius: ${
|
|
181
|
-
border-bottom-left-radius: ${
|
|
180
|
+
border-top-left-radius: ${ze.borderRadius};
|
|
181
|
+
border-bottom-left-radius: ${ze.borderRadius};
|
|
182
182
|
}
|
|
183
183
|
|
|
184
184
|
.ft-notice-label {
|
|
185
185
|
padding: 8px;
|
|
186
|
-
border-top-right-radius: ${
|
|
187
|
-
border-bottom-right-radius: ${
|
|
188
|
-
border: 1px solid ${
|
|
186
|
+
border-top-right-radius: ${ze.borderRadius};
|
|
187
|
+
border-bottom-right-radius: ${ze.borderRadius};
|
|
188
|
+
border: 1px solid ${ze.noticeColor};
|
|
189
189
|
}
|
|
190
|
-
`;var
|
|
190
|
+
`;var je=function(t,e,i,o){for(var n,s=arguments.length,r=s<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o,a=t.length-1;a>=0;a--)(n=t[a])&&(r=(s<3?n(r):s>3?n(e,i,r):n(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r};class _e extends e.FtLitElement{constructor(){super(...arguments),this.icon="info"}render(){return i.html`
|
|
191
191
|
<div class="ft-notice">
|
|
192
192
|
<div class="ft-icon">
|
|
193
193
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -196,4 +196,4 @@ const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t
|
|
|
196
196
|
<slot></slot>
|
|
197
197
|
</ft-typography>
|
|
198
198
|
</div>
|
|
199
|
-
`}}
|
|
199
|
+
`}}_e.elementDefinitions={"ft-icon":x,"ft-typography":we},_e.styles=Ne,je([o.property({type:String})],_e.prototype,"icon",void 0),e.customElement("ft-notice")(_e),t.FtNotice=_e,t.FtNoticeCssVariables=ze,t.styles=Ne}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litUnsafeHTML);
|
package/build/ft-notice.min.js
CHANGED
|
@@ -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 c={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,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.pop()}get(t){
|
|
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 c={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,c),this._definitionsByClass.set(n,c);let h=i.call(o,t);h||(h=p(t),e.call(o,t,h)),this===window.customElements&&(s.set(n,c),c.standInClass=h);const u=this._awaitingUpgrade.get(t);if(u){this._awaitingUpgrade.delete(t);for(const t of u)r.delete(t),d(t,c,!0)}const y=this._whenDefinedPromises.get(t);return void 0!==y&&(y.resolve(n),this._whenDefinedPromises.delete(t)),n}upgrade(){x.push(this),o.upgrade.apply(o,arguments),x.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=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 c=t=>t===document||t instanceof ShadowRoot,h=t=>{let e=t.getRootNode();if(!c(e)){const t=x[x.length-1];if(t instanceof CustomElementRegistry)return t;e=t.getRootNode(),c(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=h(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(){const t=n.get(this);t?.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 x=[document];const g=(t,e,i=void 0)=>{const o=(i?Object.getPrototypeOf(i):t.prototype)[e];t.prototype[e]=function(){x.push(this);const t=o.apply(i||this,arguments);return void 0!==t&&a.set(t,this),x.pop(),t}};g(ShadowRoot,"createElement",document),g(ShadowRoot,"importNode",document),g(Element,"insertAdjacentHTML");const m=(t,e)=>{const i=Object.getOwnPropertyDescriptor(t.prototype,e);Object.defineProperty(t.prototype,e,{...i,set(t){x.push(this),i.set.call(this,t),x.pop()}})};if(m(Element,"innerHTML"),m(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(zt){const t=window.customElements.define;window.customElements.define=(e,i,o)=>{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,n=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)}n(!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
|
|
@@ -36,34 +36,24 @@ var n;function r(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"objec
|
|
|
36
36
|
* Copyright 2019 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
const a=window,l=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),h=new WeakMap;
|
|
39
|
+
const a=window,l=a.ShadowRoot&&(void 0===a.ShadyCSS||a.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),h=new WeakMap;let p=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)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(l&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=h.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&h.set(e,t))}return t}toString(){return this.cssText}};const f=t=>new p("string"==typeof t?t:t+"",void 0,c),u=(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 p(i,t,c)},d=(t,e)=>{l?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),o=a.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,t.appendChild(i)}))},y=l?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return f(e)})(t):t
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
|
-
*/;var x;const g=window,m=g.trustedTypes,v=m?m.emptyScript:"",b=g.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?v: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}},$=(t,e)=>e!==t&&(e==e||t==t),O={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:$};
|
|
44
|
+
*/;var x;const g=window,m=g.trustedTypes,v=m?m.emptyScript:"",b=g.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?v: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}},$=(t,e)=>e!==t&&(e==e||t==t),O={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:$};let S=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=O){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)||O}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(y(t))}else void 0!==t&&e.push(y(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 d(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=O){var o;const n=this.constructor._$Ep(t,i);if(void 0!==n&&!0===i.reflect){const r=(void 0!==(null===(o=i.converter)||void 0===o?void 0:o.toAttribute)?i.converter:w).toAttribute(e,i.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var i;const o=this.constructor,n=o._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=o.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:w;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let o=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||$)(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){}};
|
|
45
45
|
/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
49
49
|
*/
|
|
50
|
-
var N;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:S}),(null!==(x=g.reactiveElementVersions)&&void 0!==x?x:g.reactiveElementVersions=[]).push("1.
|
|
50
|
+
var N;S.finalized=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==b||b({ReactiveElement:S}),(null!==(x=g.reactiveElementVersions)&&void 0!==x?x:g.reactiveElementVersions=[]).push("1.6.1");const C=window,E=C.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",k=`lit$${(Math.random()+"").slice(9)}$`,U="?"+k,F=`<${U}>`,j=document,z=()=>j.createComment(""),A=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,P="[ \t\n\f\r]",_=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,T=/-->/g,W=/>/g,B=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),D=/'/g,K=/"/g,H=/^(?:script|style|textarea|title)$/i,I=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),Z=Symbol.for("lit-noChange"),V=Symbol.for("lit-nothing"),J=new WeakMap,q=j.createTreeWalker(j,129,null,!1),X=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=_;for(let e=0;e<i;e++){const i=t[e];let a,l,c=-1,h=0;for(;h<i.length&&(s.lastIndex=h,l=s.exec(i),null!==l);)h=s.lastIndex,s===_?"!--"===l[1]?s=T:void 0!==l[1]?s=W:void 0!==l[2]?(H.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=B):void 0!==l[3]&&(s=B):s===B?">"===l[0]?(s=null!=n?n:_,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?B:'"'===l[3]?K:D):s===K||s===D?s=B:s===T||s===W?s=_:(s=B,n=void 0);const p=s===B&&t[e+1].startsWith("/>")?" ":"";r+=s===_?i+F:c>=0?(o.push(a),i.slice(0,c)+M+i.slice(c)+k+p):i+k+(-2===c?(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!==R?R.createHTML(a):a,o]};class G{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let n=0,r=0;const s=t.length-1,a=this.parts,[l,c]=X(t,e);if(this.el=G.createElement(l,i),q.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=q.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith(M)||e.startsWith(k)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+M).split(k),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?it:"?"===e[1]?nt:"@"===e[1]?rt:et})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(H.test(o.tagName)){const t=o.textContent.split(k),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],z()),q.nextNode(),a.push({type:2,index:++n});o.append(t[e],z())}}}else if(8===o.nodeType)if(o.data===U)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(k,t+1));)a.push({type:7,index:n}),t+=k.length-1}n++}}static createElement(t,e){const i=j.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,o){var n,r,s,a;if(e===Z)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=A(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==c&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===c?l=void 0:(l=new c(t),l._$AT(t,i,o)),void 0!==o?(null!==(s=(a=i)._$Co)&&void 0!==s?s:a._$Co=[])[o]=l:i._$Cl=l),void 0!==l&&(e=Q(t,l._$AS(t,e.values),l,o)),e}class Y{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:j).importNode(i,!0);q.currentNode=n;let r=q.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new tt(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new st(r,this,t)),this._$AV.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=q.nextNode(),s++)}return n}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class tt{constructor(t,e,i,o){var n;this.type=2,this._$AH=V,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cp=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._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),A(t)?t===V||null==t||""===t?(this._$AH!==V&&this._$AR(),this._$AH=V):t!==this._$AH&&t!==Z&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==V&&A(this._$AH)?this._$AA.nextSibling.data=t:this.$(j.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=G.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.v(i);else{const t=new Y(n,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=J.get(t.strings);return void 0===e&&J.set(t.strings,e=new G(t)),e}T(t){L(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 tt(this.k(z()),this.k(z()),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._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class et{constructor(t,e,i,o,n){this.type=1,this._$AH=V,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=V}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=Q(this,t,e,0),r=!A(t)||t!==this._$AH&&t!==Z,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=Q(this,o[i+s],e,s),a===Z&&(a=this._$AH[s]),r||(r=!A(a)||a!==this._$AH[s]),a===V?t=V:t!==V&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===V?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===V?void 0:t}}const ot=E?E.emptyScript:"";class nt extends et{constructor(){super(...arguments),this.type=4}j(t){t&&t!==V?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class rt extends et{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=Q(this,t,e,0))&&void 0!==i?i:V)===Z)return;const o=this._$AH,n=t===V&&o!==V||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==V&&(o===V||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 st{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Q(this,t)}}const at=C.litHtmlPolyfillSupport;null==at||at(G,tt),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.7.3");
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
var st,at;class lt extends S{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 Q(e.insertBefore(j(),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 H}}lt.finalized=!0,lt._$litElement$=!0,null===(st=globalThis.litElementHydrateSupport)||void 0===st||st.call(globalThis,{LitElement:lt});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:lt}),(null!==(at=globalThis.litElementVersions)&&void 0!==at?at:globalThis.litElementVersions=[]).push("3.2.2");class ht{static create(t,e,i){let o=t=>f(null!=t?t:i),n=u`var(${f(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>u`var(${f(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=u`var(${f(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>u`var(${f(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):f(null!=e?e:t.defaultValue),o=u`var(${f(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=>u`var(${f(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}}const pt={colorPrimary:ht.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ht.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ht.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ht.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ht.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ht.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ht.create("--ft-color-error","COLOR","#B00020"),colorOutline:ht.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ht.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ht.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ht.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ht.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ht.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ht.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ht.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ht.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ht.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ht.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ht.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ht.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ht.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ht.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ht.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ht.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ht.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ht.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ht.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ht.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ht.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ht.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ht.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ht.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ht.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ht.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ht.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ht.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ht.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ht.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ht.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ht.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ht.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ht.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ht.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ht.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.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:ht.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ht.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ht.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ht.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ht.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ht.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ht.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ht.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};
|
|
57
|
-
/**
|
|
58
|
-
* @license
|
|
59
|
-
* Copyright 2021 Google LLC
|
|
60
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/var ft,ut,dt=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 yt 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 d(n,this.constructor.elementStyles),n}}}(lt)){constructor(){super(),this.exportpartsDebouncer=new e(5),this.constructorName=this.constructor.name,this.constructorPrototype=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this.constructorName&&Object.setPrototypeOf(this,this.constructorPrototype)}getStyles(){return[]}getTemplate(){return null}render(){let t=this.getStyles();return Array.isArray(t)||(t=[t]),K`
|
|
62
|
-
${t.map((t=>K`
|
|
63
|
-
<style>${t}</style>
|
|
64
|
-
`))}
|
|
65
|
-
${this.getTemplate()}
|
|
66
|
-
`}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.exportpartsDebouncer.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,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}dt([o()],yt.prototype,"exportpartsPrefix",void 0),dt([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)=>!r(t,e),...null!=e?e:{}})}([])],yt.prototype,"exportpartsPrefixes",void 0),dt([o()],yt.prototype,"customStylesheet",void 0),u`
|
|
56
|
+
var lt,ct;let ht=class extends S{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 tt(e.insertBefore(z(),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 Z}};ht.finalized=!0,ht._$litElement$=!0,null===(lt=globalThis.litElementHydrateSupport)||void 0===lt||lt.call(globalThis,{LitElement:ht});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ht}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.3.2");class ft{static create(t,e,i){let o=t=>f(null!=t?t:i),n=u`var(${f(t)}, ${o(i)})`;return n.name=t,n.category=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>u`var(${f(t)}, ${o(e)})`,n.breadcrumb=()=>[],n.lastResortDefaultValue=()=>i,n}static extend(t,e,i){let o=t=>e.get(null!=t?t:i),n=u`var(${f(t)}, ${o(i)})`;return n.name=t,n.category=e.category,n.fallbackVariable=e,n.defaultValue=i,n.defaultCssValue=o,n.get=e=>u`var(${f(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):f(null!=e?e:t.defaultValue),o=u`var(${f(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=>u`var(${f(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}}const ut={colorPrimary:ft.create("--ft-color-primary","COLOR","#2196F3"),colorPrimaryVariant:ft.create("--ft-color-primary-variant","COLOR","#1976D2"),colorSecondary:ft.create("--ft-color-secondary","COLOR","#FFCC80"),colorSecondaryVariant:ft.create("--ft-color-secondary-variant","COLOR","#F57C00"),colorSurface:ft.create("--ft-color-surface","COLOR","#FFFFFF"),colorContent:ft.create("--ft-color-content","COLOR","rgba(0, 0, 0, 0.87)"),colorError:ft.create("--ft-color-error","COLOR","#B00020"),colorOutline:ft.create("--ft-color-outline","COLOR","rgba(0, 0, 0, 0.14)"),colorOpacityHigh:ft.create("--ft-color-opacity-high","NUMBER","1"),colorOpacityMedium:ft.create("--ft-color-opacity-medium","NUMBER","0.74"),colorOpacityDisabled:ft.create("--ft-color-opacity-disabled","NUMBER","0.38"),colorOnPrimary:ft.create("--ft-color-on-primary","COLOR","#FFFFFF"),colorOnPrimaryHigh:ft.create("--ft-color-on-primary-high","COLOR","#FFFFFF"),colorOnPrimaryMedium:ft.create("--ft-color-on-primary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnPrimaryDisabled:ft.create("--ft-color-on-primary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSecondary:ft.create("--ft-color-on-secondary","COLOR","#FFFFFF"),colorOnSecondaryHigh:ft.create("--ft-color-on-secondary-high","COLOR","#FFFFFF"),colorOnSecondaryMedium:ft.create("--ft-color-on-secondary-medium","COLOR","rgba(255, 255, 255, 0.74)"),colorOnSecondaryDisabled:ft.create("--ft-color-on-secondary-disabled","COLOR","rgba(255, 255, 255, 0.38)"),colorOnSurface:ft.create("--ft-color-on-surface","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceHigh:ft.create("--ft-color-on-surface-high","COLOR","rgba(0, 0, 0, 0.87)"),colorOnSurfaceMedium:ft.create("--ft-color-on-surface-medium","COLOR","rgba(0, 0, 0, 0.60)"),colorOnSurfaceDisabled:ft.create("--ft-color-on-surface-disabled","COLOR","rgba(0, 0, 0, 0.38)"),opacityContentOnSurfaceDisabled:ft.create("--ft-opacity-content-on-surface-disabled","NUMBER","0"),opacityContentOnSurfaceEnable:ft.create("--ft-opacity-content-on-surface-enable","NUMBER","0"),opacityContentOnSurfaceHover:ft.create("--ft-opacity-content-on-surface-hover","NUMBER","0.04"),opacityContentOnSurfaceFocused:ft.create("--ft-opacity-content-on-surface-focused","NUMBER","0.12"),opacityContentOnSurfacePressed:ft.create("--ft-opacity-content-on-surface-pressed","NUMBER","0.10"),opacityContentOnSurfaceSelected:ft.create("--ft-opacity-content-on-surface-selected","NUMBER","0.08"),opacityContentOnSurfaceDragged:ft.create("--ft-opacity-content-on-surface-dragged","NUMBER","0.08"),opacityPrimaryOnSurfaceDisabled:ft.create("--ft-opacity-primary-on-surface-disabled","NUMBER","0"),opacityPrimaryOnSurfaceEnable:ft.create("--ft-opacity-primary-on-surface-enable","NUMBER","0"),opacityPrimaryOnSurfaceHover:ft.create("--ft-opacity-primary-on-surface-hover","NUMBER","0.04"),opacityPrimaryOnSurfaceFocused:ft.create("--ft-opacity-primary-on-surface-focused","NUMBER","0.12"),opacityPrimaryOnSurfacePressed:ft.create("--ft-opacity-primary-on-surface-pressed","NUMBER","0.10"),opacityPrimaryOnSurfaceSelected:ft.create("--ft-opacity-primary-on-surface-selected","NUMBER","0.08"),opacityPrimaryOnSurfaceDragged:ft.create("--ft-opacity-primary-on-surface-dragged","NUMBER","0.08"),opacitySurfaceOnPrimaryDisabled:ft.create("--ft-opacity-surface-on-primary-disabled","NUMBER","0"),opacitySurfaceOnPrimaryEnable:ft.create("--ft-opacity-surface-on-primary-enable","NUMBER","0"),opacitySurfaceOnPrimaryHover:ft.create("--ft-opacity-surface-on-primary-hover","NUMBER","0.04"),opacitySurfaceOnPrimaryFocused:ft.create("--ft-opacity-surface-on-primary-focused","NUMBER","0.12"),opacitySurfaceOnPrimaryPressed:ft.create("--ft-opacity-surface-on-primary-pressed","NUMBER","0.10"),opacitySurfaceOnPrimarySelected:ft.create("--ft-opacity-surface-on-primary-selected","NUMBER","0.08"),opacitySurfaceOnPrimaryDragged:ft.create("--ft-opacity-surface-on-primary-dragged","NUMBER","0.08"),elevation00:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.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:ft.create("--ft-border-radius-S","SIZE","4px"),borderRadiusM:ft.create("--ft-border-radius-M","SIZE","8px"),borderRadiusL:ft.create("--ft-border-radius-L","SIZE","12px"),borderRadiusXL:ft.create("--ft-border-radius-XL","SIZE","16px"),titleFont:ft.create("--ft-title-font","UNKNOWN","Ubuntu, system-ui, sans-serif"),contentFont:ft.create("--ft-content-font","UNKNOWN","'Open Sans', system-ui, sans-serif"),transitionDuration:ft.create("--ft-transition-duration","UNKNOWN","250ms"),transitionTimingFunction:ft.create("--ft-transition-timing-function","UNKNOWN","ease-in-out")};class dt extends ht{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 d(i,t.elementStyles),i}}var yt,xt=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 gt=Symbol("constructorPrototype"),mt=Symbol("constructorName"),vt=Symbol("exportpartsDebouncer");class bt extends dt{constructor(){super(),this[yt]=new e(5),this[mt]=this.constructor.name,this[gt]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[mt]&&Object.setPrototypeOf(this,this[gt])}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[vt].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,n,r,s;const a=t=>null!=t&&t.trim().length>0,l=t.filter(a).map((t=>t.trim()));if(0===l.length)return void this.removeAttribute("exportparts");const c=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!==(n=null===(o=t.getAttribute("part"))||void 0===o?void 0:o.split(" "))&&void 0!==n?n:[],i=null!==(s=null===(r=t.getAttribute("exportparts"))||void 0===r?void 0:r.split(",").map((t=>t.split(":")[1])))&&void 0!==s?s:[];new Array(...e,...i).filter(a).map((t=>t.trim())).forEach((t=>c.add(t)))}if(0===c.size)return void this.removeAttribute("exportparts");const h=[...c.values()].flatMap((t=>l.map((e=>`${t}:${e}--${t}`))));this.setAttribute("exportparts",[...this.part,...h].join(", "))}}var wt,$t;yt=vt,xt([o()],bt.prototype,"exportpartsPrefix",void 0),xt([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)=>!r(t,e),...null!=e?e:{}})}([])],bt.prototype,"exportpartsPrefixes",void 0),xt([o()],bt.prototype,"customStylesheet",void 0),u`
|
|
67
57
|
.ft-no-text-select {
|
|
68
58
|
-webkit-touch-callout: none;
|
|
69
59
|
-webkit-user-select: none;
|
|
@@ -95,18 +85,18 @@ var st,at;class lt extends S{constructor(){super(...arguments),this.renderOption
|
|
|
95
85
|
display: inline-block;
|
|
96
86
|
width: 0;
|
|
97
87
|
}
|
|
98
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
88
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===($t=null===(wt=window.safari)||void 0===wt?void 0:wt.pushNotification)||void 0===$t||$t.toString());
|
|
99
89
|
/**
|
|
100
90
|
* @license
|
|
101
91
|
* Copyright 2017 Google LLC
|
|
102
92
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
93
|
*/
|
|
104
|
-
const
|
|
94
|
+
const Ot=2;class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}
|
|
105
95
|
/**
|
|
106
96
|
* @license
|
|
107
97
|
* Copyright 2017 Google LLC
|
|
108
98
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
-
*/class
|
|
99
|
+
*/let Nt=class extends St{constructor(t){if(super(t),this.et=V,t.type!==Ot)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===V||null==t)return this.ft=void 0,this.et=t;if(t===Z)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:[]}}};Nt.directiveName="unsafeHTML",Nt.resultType=1;const Ct=(t=>(...e)=>({_$litDirective$:t,values:e}))(Nt);var Et,Rt;!function(t){t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.STAR="",t.STAR_PLAIN="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.ARROW_RIGHT_TO_LINE="",t.THIN_ARROW_UP="",t.CONTEXTUAL="",t.UNSTRUCTURED_DOC="",t.RESET="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.MY_COLLECTIONS="",t.OFFLINE_SETTINGS="",t.MY_LIBRARY="",t.RATE_PLAIN="",t.RATE="",t.FEEDBACK_PLAIN="",t.PAUSE="",t.PLAY="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.SHORTCUT_MENU="",t.PRINT="",t.DEFAULT_ROLES="",t.ACCOUNT_SETTINGS="",t.ONLINE="",t.OFFLINE="",t.UPLOAD="",t.BOOK_PLAIN="",t.SYNC="",t.SHARED_PBK="",t.COLLECTIONS="",t.SEARCH_IN_PUBLICATION="",t.BOOKS="",t.LOCKER="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SAVE="",t.MAILS_AND_NOTIFICATIONS="",t.DOT="",t.MINUS="",t.PLUS="",t.FILTERS="",t.STRIPE_ARROW_RIGHT="",t.STRIPE_ARROW_LEFT="",t.ATTACHMENTS="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.EXPORT="",t.MENU="",t.TAG="",t.TAG_PLAIN="",t.COPY_TO_CLIPBOARD="",t.COLUMNS="",t.ARTICLE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.LOGOUT="",t.SIGN_IN="",t.THIN_ARROW="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.FACET_HAS_DESCENDANT="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.INFO="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.SHARE="󨃱",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.EXTLINK="",t.CALENDAR="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.TOPICS="",t.EYE="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN_THEME="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.HOME="",t.TRANSLATE="",t.USER="",t.ADMIN="",t.ANALYTICS="",t.ADMIN_KHUB="",t.ADMIN_USERS="",t.ADMIN_INTEGRATION="",t.ADMIN_PORTAL=""}(Et||(Et={})),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=""}(Rt||(Rt={})),new Map([...["abw"].map((t=>[t,Rt.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,Rt.AUDIO])),...["avi"].map((t=>[t,Rt.AVI])),...["chm","xhs"].map((t=>[t,Rt.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,Rt.CODE])),...["csv"].map((t=>[t,Rt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Rt.DITA])),...["epub"].map((t=>[t,Rt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Rt.EXCEL])),...["flac"].map((t=>[t,Rt.FLAC])),...["gif"].map((t=>[t,Rt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Rt.GZIP])),...["html","htm","xhtml"].map((t=>[t,Rt.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,Rt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Rt.JPEG])),...["json"].map((t=>[t,Rt.JSON])),...["m4a","m4p"].map((t=>[t,Rt.M4A])),...["mov","qt"].map((t=>[t,Rt.MOV])),...["mp3"].map((t=>[t,Rt.MP3])),...["mp4","m4v"].map((t=>[t,Rt.MP4])),...["ogg","oga"].map((t=>[t,Rt.OGG])),...["pdf","ps"].map((t=>[t,Rt.PDF])),...["png"].map((t=>[t,Rt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Rt.POWERPOINT])),...["rar"].map((t=>[t,Rt.RAR])),...["stp"].map((t=>[t,Rt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Rt.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,Rt.VIDEO])),...["wav"].map((t=>[t,Rt.WAV])),...["wma"].map((t=>[t,Rt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Rt.WORD])),...["xml","xsl","rdf"].map((t=>[t,Rt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Rt.YAML])),...["zip"].map((t=>[t,Rt.ZIP]))]);const Mt={size:ft.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ft.extend("--ft-icon-fluid-topics-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ft.extend("--ft-icon-file-format-font-family",ft.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ft.extend("--ft-icon-material-font-family",ft.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ft.create("--ft-icon-vertical-align","UNKNOWN","unset")},kt=u`
|
|
110
100
|
:host, i.ft-icon {
|
|
111
101
|
display: inline-flex;
|
|
112
102
|
align-items: center;
|
|
@@ -115,14 +105,14 @@ const xt=2;class gt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
115
105
|
}
|
|
116
106
|
|
|
117
107
|
:host {
|
|
118
|
-
width: ${
|
|
119
|
-
height: ${
|
|
108
|
+
width: ${Mt.size};
|
|
109
|
+
height: ${Mt.size};
|
|
120
110
|
}
|
|
121
111
|
|
|
122
112
|
i.ft-icon {
|
|
123
113
|
width: 100%;
|
|
124
114
|
height: 100%;
|
|
125
|
-
font-size: ${
|
|
115
|
+
font-size: ${Mt.size};
|
|
126
116
|
line-height: 1;
|
|
127
117
|
font-weight: normal;
|
|
128
118
|
text-transform: none;
|
|
@@ -133,151 +123,151 @@ const xt=2;class gt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
133
123
|
text-rendering: auto;
|
|
134
124
|
-webkit-font-smoothing: antialiased;
|
|
135
125
|
-moz-osx-font-smoothing: grayscale;
|
|
136
|
-
vertical-align: ${
|
|
126
|
+
vertical-align: ${Mt.verticalAlign};
|
|
137
127
|
}
|
|
138
128
|
|
|
139
129
|
i.ft-icon.ft-icon--fluid-topics {
|
|
140
|
-
font-family: ${
|
|
130
|
+
font-family: ${Mt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
141
131
|
|
|
142
132
|
/* Ugly fix because font is broken */
|
|
143
|
-
font-size: calc(0.
|
|
133
|
+
font-size: calc(0.75 * ${Mt.size});
|
|
144
134
|
position: relative;
|
|
145
|
-
top: -
|
|
135
|
+
top: -4%;
|
|
146
136
|
justify-content: center;
|
|
147
137
|
}
|
|
148
138
|
|
|
149
139
|
.ft-icon--file-format {
|
|
150
|
-
font-family: ${
|
|
140
|
+
font-family: ${Mt.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
151
141
|
}
|
|
152
142
|
|
|
153
143
|
.ft-icon--material {
|
|
154
|
-
font-family: ${
|
|
144
|
+
font-family: ${Mt.materialFontFamily}, "Material Icons", sans-serif;
|
|
155
145
|
}
|
|
156
|
-
`;var
|
|
157
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
158
|
-
${
|
|
159
|
-
<slot ?hidden=${
|
|
146
|
+
`;var Ut;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Ut||(Ut={}));var Ft=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 jt extends bt{constructor(){super(...arguments),this.resolvedIcon=V}render(){const t=this.variant&&Object.values(Ut).includes(this.variant)?this.variant:Ut.fluid_topics,e=t!==Ut.material||!!this.value;return I`
|
|
147
|
+
<i class="ft-icon ${"ft-icon--"+t}">
|
|
148
|
+
${Ct(this.resolvedIcon)}
|
|
149
|
+
<slot ?hidden=${e}></slot>
|
|
160
150
|
</i>
|
|
161
|
-
`}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
|
|
151
|
+
`}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 Ut.file_format:this.resolvedIcon=null!==(t=Rt[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Ut.material:this.resolvedIcon=this.value||V;break;default:this.resolvedIcon=null!==(e=Et[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}jt.elementDefinitions={},jt.styles=kt,Ft([o()],jt.prototype,"variant",void 0),Ft([o()],jt.prototype,"value",void 0),Ft([function(t){return o({...t,state:!0})}
|
|
162
152
|
/**
|
|
163
153
|
* @license
|
|
164
154
|
* Copyright 2017 Google LLC
|
|
165
155
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
166
|
-
*/()],
|
|
156
|
+
*/()],jt.prototype,"resolvedIcon",void 0),Ft([
|
|
167
157
|
/**
|
|
168
158
|
* @license
|
|
169
159
|
* Copyright 2017 Google LLC
|
|
170
160
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
171
161
|
*/
|
|
172
|
-
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],
|
|
162
|
+
function(t,e){return(({finisher:t,descriptor:e})=>(i,o)=>{var n;if(void 0===o){const o=null!==(n=i.originalKey)&&void 0!==n?n:i.key,r=null!=e?{kind:"method",placement:"prototype",key:o,descriptor:e(i.key)}:{...i,key:o};return null!=t&&(r.finisher=function(e){t(e,o)}),r}{const n=i.constructor;void 0!==e&&Object.defineProperty(i,o,e(o)),null==t||t(n,o)}})({descriptor:i=>{const o={get(){var e,i;return null!==(i=null===(e=this.renderRoot)||void 0===e?void 0:e.querySelector(t))&&void 0!==i?i:null},enumerable:!0,configurable:!0};if(e){const e="symbol"==typeof i?Symbol():"__"+i;o.get=function(){var i,o;return void 0===this[e]&&(this[e]=null!==(o=null===(i=this.renderRoot)||void 0===i?void 0:i.querySelector(t))&&void 0!==o?o:null),this[e]}}return o}})}("slot")],jt.prototype,"slottedContent",void 0),s("ft-icon")(jt);
|
|
173
163
|
/**
|
|
174
164
|
* @license
|
|
175
165
|
* Copyright 2020 Google LLC
|
|
176
166
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
177
167
|
*/
|
|
178
|
-
const
|
|
168
|
+
const zt=Symbol.for(""),At=t=>{if((null==t?void 0:t.r)===zt)return null==t?void 0:t._$litStatic$},Lt=t=>({_$litStatic$:t,r:zt}),Pt=new Map,_t=(t=>(e,...i)=>{const o=i.length;let n,r;const s=[],a=[];let l,c=0,h=!1;for(;c<o;){for(l=e[c];c<o&&void 0!==(r=i[c],n=At(r));)l+=n+e[++c],h=!0;c!==o&&a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=Pt.get(t))&&(s.raw=s,Pt.set(t,e=s)),i=a}return t(e,...i)})(I);var Tt;!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"}(Tt||(Tt={}));const Wt=ft.extend("--ft-typography-font-family",ut.titleFont),Bt=ft.extend("--ft-typography-font-family",ut.contentFont),Dt={fontFamily:Bt,fontSize:ft.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ft.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ft.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ft.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ft.create("--ft-typography-text-transform","UNKNOWN","inherit")},Kt=ft.extend("--ft-typography-title-font-family",Wt),Ht=ft.extend("--ft-typography-title-font-size",Dt.fontSize,"20px"),It=ft.extend("--ft-typography-title-font-weight",Dt.fontWeight,"normal"),Zt=ft.extend("--ft-typography-title-letter-spacing",Dt.letterSpacing,"0.15px"),Vt=ft.extend("--ft-typography-title-line-height",Dt.lineHeight,"1.2"),Jt=ft.extend("--ft-typography-title-text-transform",Dt.textTransform,"inherit"),qt=ft.extend("--ft-typography-title-dense-font-family",Wt),Xt=ft.extend("--ft-typography-title-dense-font-size",Dt.fontSize,"14px"),Gt=ft.extend("--ft-typography-title-dense-font-weight",Dt.fontWeight,"normal"),Qt=ft.extend("--ft-typography-title-dense-letter-spacing",Dt.letterSpacing,"0.105px"),Yt=ft.extend("--ft-typography-title-dense-line-height",Dt.lineHeight,"1.7"),te=ft.extend("--ft-typography-title-dense-text-transform",Dt.textTransform,"inherit"),ee=ft.extend("--ft-typography-subtitle1-font-family",Bt),ie=ft.extend("--ft-typography-subtitle1-font-size",Dt.fontSize,"16px"),oe=ft.extend("--ft-typography-subtitle1-font-weight",Dt.fontWeight,"600"),ne=ft.extend("--ft-typography-subtitle1-letter-spacing",Dt.letterSpacing,"0.144px"),re=ft.extend("--ft-typography-subtitle1-line-height",Dt.lineHeight,"1.5"),se=ft.extend("--ft-typography-subtitle1-text-transform",Dt.textTransform,"inherit"),ae=ft.extend("--ft-typography-subtitle2-font-family",Bt),le=ft.extend("--ft-typography-subtitle2-font-size",Dt.fontSize,"14px"),ce=ft.extend("--ft-typography-subtitle2-font-weight",Dt.fontWeight,"normal"),he=ft.extend("--ft-typography-subtitle2-letter-spacing",Dt.letterSpacing,"0.098px"),pe=ft.extend("--ft-typography-subtitle2-line-height",Dt.lineHeight,"1.7"),fe=ft.extend("--ft-typography-subtitle2-text-transform",Dt.textTransform,"inherit"),ue=ft.extend("--ft-typography-body1-font-family",Bt),de=ft.extend("--ft-typography-body1-font-size",Dt.fontSize,"16px"),ye=ft.extend("--ft-typography-body1-font-weight",Dt.fontWeight,"normal"),xe=ft.extend("--ft-typography-body1-letter-spacing",Dt.letterSpacing,"0.496px"),ge=ft.extend("--ft-typography-body1-line-height",Dt.lineHeight,"1.5"),me=ft.extend("--ft-typography-body1-text-transform",Dt.textTransform,"inherit"),ve=ft.extend("--ft-typography-body2-font-family",Bt),be=ft.extend("--ft-typography-body2-font-size",Dt.fontSize,"14px"),we=ft.extend("--ft-typography-body2-font-weight",Dt.fontWeight,"normal"),$e=ft.extend("--ft-typography-body2-letter-spacing",Dt.letterSpacing,"0.252px"),Oe=ft.extend("--ft-typography-body2-line-height",Dt.lineHeight,"1.4"),Se=ft.extend("--ft-typography-body2-text-transform",Dt.textTransform,"inherit"),Ne=ft.extend("--ft-typography-caption-font-family",Bt),Ce=ft.extend("--ft-typography-caption-font-size",Dt.fontSize,"12px"),Ee=ft.extend("--ft-typography-caption-font-weight",Dt.fontWeight,"normal"),Re=ft.extend("--ft-typography-caption-letter-spacing",Dt.letterSpacing,"0.396px"),Me=ft.extend("--ft-typography-caption-line-height",Dt.lineHeight,"1.33"),ke=ft.extend("--ft-typography-caption-text-transform",Dt.textTransform,"inherit"),Ue=ft.extend("--ft-typography-breadcrumb-font-family",Bt),Fe=ft.extend("--ft-typography-breadcrumb-font-size",Dt.fontSize,"10px"),je=ft.extend("--ft-typography-breadcrumb-font-weight",Dt.fontWeight,"normal"),ze=ft.extend("--ft-typography-breadcrumb-letter-spacing",Dt.letterSpacing,"0.33px"),Ae=ft.extend("--ft-typography-breadcrumb-line-height",Dt.lineHeight,"1.6"),Le=ft.extend("--ft-typography-breadcrumb-text-transform",Dt.textTransform,"inherit"),Pe=ft.extend("--ft-typography-overline-font-family",Bt),_e=ft.extend("--ft-typography-overline-font-size",Dt.fontSize,"10px"),Te=ft.extend("--ft-typography-overline-font-weight",Dt.fontWeight,"normal"),We=ft.extend("--ft-typography-overline-letter-spacing",Dt.letterSpacing,"1.5px"),Be=ft.extend("--ft-typography-overline-line-height",Dt.lineHeight,"1.6"),De=ft.extend("--ft-typography-overline-text-transform",Dt.textTransform,"uppercase"),Ke=ft.extend("--ft-typography-button-font-family",Bt),He=ft.extend("--ft-typography-button-font-size",Dt.fontSize,"14px"),Ie=ft.extend("--ft-typography-button-font-weight",Dt.fontWeight,"600"),Ze=ft.extend("--ft-typography-button-letter-spacing",Dt.letterSpacing,"1.246px"),Ve=ft.extend("--ft-typography-button-line-height",Dt.lineHeight,"1.15"),Je=ft.extend("--ft-typography-button-text-transform",Dt.textTransform,"uppercase"),qe=u`
|
|
179
169
|
.ft-typography--title {
|
|
180
|
-
font-family: ${
|
|
181
|
-
font-size: ${
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
184
|
-
line-height: ${
|
|
185
|
-
text-transform: ${
|
|
170
|
+
font-family: ${Kt};
|
|
171
|
+
font-size: ${Ht};
|
|
172
|
+
font-weight: ${It};
|
|
173
|
+
letter-spacing: ${Zt};
|
|
174
|
+
line-height: ${Vt};
|
|
175
|
+
text-transform: ${Jt};
|
|
186
176
|
}
|
|
187
|
-
`,
|
|
177
|
+
`,Xe=u`
|
|
188
178
|
.ft-typography--title-dense {
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
179
|
+
font-family: ${qt};
|
|
180
|
+
font-size: ${Xt};
|
|
181
|
+
font-weight: ${Gt};
|
|
182
|
+
letter-spacing: ${Qt};
|
|
183
|
+
line-height: ${Yt};
|
|
184
|
+
text-transform: ${te};
|
|
195
185
|
}
|
|
196
|
-
`,
|
|
186
|
+
`,Ge=u`
|
|
197
187
|
.ft-typography--subtitle1 {
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
188
|
+
font-family: ${ee};
|
|
189
|
+
font-size: ${ie};
|
|
190
|
+
font-weight: ${oe};
|
|
191
|
+
letter-spacing: ${ne};
|
|
192
|
+
line-height: ${re};
|
|
193
|
+
text-transform: ${se};
|
|
204
194
|
}
|
|
205
|
-
`,
|
|
195
|
+
`,Qe=u`
|
|
206
196
|
.ft-typography--subtitle2 {
|
|
207
|
-
font-family: ${
|
|
208
|
-
font-size: ${
|
|
209
|
-
font-weight: ${
|
|
210
|
-
letter-spacing: ${
|
|
211
|
-
line-height: ${
|
|
212
|
-
text-transform: ${
|
|
197
|
+
font-family: ${ae};
|
|
198
|
+
font-size: ${le};
|
|
199
|
+
font-weight: ${ce};
|
|
200
|
+
letter-spacing: ${he};
|
|
201
|
+
line-height: ${pe};
|
|
202
|
+
text-transform: ${fe};
|
|
213
203
|
}
|
|
214
204
|
|
|
215
|
-
`,
|
|
205
|
+
`,Ye=u`
|
|
216
206
|
.ft-typography--body1 {
|
|
217
|
-
font-family: ${
|
|
218
|
-
font-size: ${
|
|
219
|
-
font-weight: ${
|
|
220
|
-
letter-spacing: ${
|
|
221
|
-
line-height: ${
|
|
222
|
-
text-transform: ${
|
|
207
|
+
font-family: ${ue};
|
|
208
|
+
font-size: ${de};
|
|
209
|
+
font-weight: ${ye};
|
|
210
|
+
letter-spacing: ${xe};
|
|
211
|
+
line-height: ${ge};
|
|
212
|
+
text-transform: ${me};
|
|
223
213
|
}
|
|
224
|
-
`,
|
|
214
|
+
`,ti=u`
|
|
225
215
|
.ft-typography--body2 {
|
|
226
|
-
font-family: ${
|
|
227
|
-
font-size: ${
|
|
228
|
-
font-weight: ${
|
|
229
|
-
letter-spacing: ${
|
|
230
|
-
line-height: ${
|
|
231
|
-
text-transform: ${
|
|
216
|
+
font-family: ${ve};
|
|
217
|
+
font-size: ${be};
|
|
218
|
+
font-weight: ${we};
|
|
219
|
+
letter-spacing: ${$e};
|
|
220
|
+
line-height: ${Oe};
|
|
221
|
+
text-transform: ${Se};
|
|
232
222
|
}
|
|
233
|
-
`,
|
|
223
|
+
`,ei=u`
|
|
234
224
|
.ft-typography--caption {
|
|
235
|
-
font-family: ${
|
|
236
|
-
font-size: ${
|
|
237
|
-
font-weight: ${
|
|
238
|
-
letter-spacing: ${
|
|
239
|
-
line-height: ${
|
|
240
|
-
text-transform: ${
|
|
225
|
+
font-family: ${Ne};
|
|
226
|
+
font-size: ${Ce};
|
|
227
|
+
font-weight: ${Ee};
|
|
228
|
+
letter-spacing: ${Re};
|
|
229
|
+
line-height: ${Me};
|
|
230
|
+
text-transform: ${ke};
|
|
241
231
|
}
|
|
242
|
-
`,
|
|
232
|
+
`,ii=u`
|
|
243
233
|
.ft-typography--breadcrumb {
|
|
244
|
-
font-family: ${
|
|
245
|
-
font-size: ${
|
|
246
|
-
font-weight: ${
|
|
247
|
-
letter-spacing: ${
|
|
248
|
-
line-height: ${
|
|
249
|
-
text-transform: ${
|
|
234
|
+
font-family: ${Ue};
|
|
235
|
+
font-size: ${Fe};
|
|
236
|
+
font-weight: ${je};
|
|
237
|
+
letter-spacing: ${ze};
|
|
238
|
+
line-height: ${Ae};
|
|
239
|
+
text-transform: ${Le};
|
|
250
240
|
}
|
|
251
|
-
`,
|
|
241
|
+
`,oi=u`
|
|
252
242
|
.ft-typography--overline {
|
|
253
|
-
font-family: ${
|
|
254
|
-
font-size: ${
|
|
255
|
-
font-weight: ${
|
|
256
|
-
letter-spacing: ${
|
|
257
|
-
line-height: ${
|
|
258
|
-
text-transform: ${
|
|
243
|
+
font-family: ${Pe};
|
|
244
|
+
font-size: ${_e};
|
|
245
|
+
font-weight: ${Te};
|
|
246
|
+
letter-spacing: ${We};
|
|
247
|
+
line-height: ${Be};
|
|
248
|
+
text-transform: ${De};
|
|
259
249
|
}
|
|
260
|
-
`,
|
|
250
|
+
`,ni=u`
|
|
261
251
|
.ft-typography--button {
|
|
262
|
-
font-family: ${
|
|
263
|
-
font-size: ${
|
|
264
|
-
font-weight: ${
|
|
265
|
-
letter-spacing: ${
|
|
266
|
-
line-height: ${
|
|
267
|
-
text-transform: ${
|
|
252
|
+
font-family: ${Ke};
|
|
253
|
+
font-size: ${He};
|
|
254
|
+
font-weight: ${Ie};
|
|
255
|
+
letter-spacing: ${Ze};
|
|
256
|
+
line-height: ${Ve};
|
|
257
|
+
text-transform: ${Je};
|
|
268
258
|
}
|
|
269
|
-
`,
|
|
259
|
+
`,ri=u`
|
|
270
260
|
.ft-typography {
|
|
271
261
|
vertical-align: inherit;
|
|
272
262
|
}
|
|
273
|
-
`;var
|
|
274
|
-
<${
|
|
263
|
+
`;var si=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 ai extends bt{constructor(){super(...arguments),this.variant=Tt.body1}render(){return this.element?_t`
|
|
264
|
+
<${Lt(this.element)}
|
|
275
265
|
class="ft-typography ft-typography--${this.variant}">
|
|
276
266
|
<slot></slot>
|
|
277
|
-
</${
|
|
278
|
-
`:
|
|
267
|
+
</${Lt(this.element)}>
|
|
268
|
+
`:_t`
|
|
279
269
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
280
|
-
`}}
|
|
270
|
+
`}}ai.styles=[qe,Xe,Ge,Qe,Ye,ti,ei,ii,oi,ni,ri],si([o()],ai.prototype,"element",void 0),si([o()],ai.prototype,"variant",void 0),s("ft-typography")(ai);const li={noticeColor:ft.extend("--ft-notice-color",ut.colorPrimary),noticeIconColor:ft.extend("--ft-notice-icon-color",ut.colorOnPrimary),borderRadius:ft.external(ut.borderRadiusS,"Design System")},ci=u`
|
|
281
271
|
.ft-notice {
|
|
282
272
|
display: inline-flex;
|
|
283
273
|
align-items: stretch;
|
|
@@ -285,28 +275,28 @@ const Et=Symbol.for(""),Rt=t=>{if((null==t?void 0:t.r)===Et)return null==t?void
|
|
|
285
275
|
}
|
|
286
276
|
|
|
287
277
|
ft-icon {
|
|
288
|
-
${
|
|
278
|
+
${hi=Mt.size,pi="24px",f(`${hi.name}: ${pi}`)};
|
|
289
279
|
padding: 0 8px;
|
|
290
280
|
display: flex;
|
|
291
281
|
align-self: center;
|
|
292
282
|
}
|
|
293
283
|
|
|
294
284
|
.ft-icon {
|
|
295
|
-
color: ${
|
|
296
|
-
background-color: ${
|
|
285
|
+
color: ${li.noticeIconColor};
|
|
286
|
+
background-color: ${li.noticeColor};
|
|
297
287
|
display: flex;
|
|
298
288
|
align-items: center;
|
|
299
|
-
border-top-left-radius: ${
|
|
300
|
-
border-bottom-left-radius: ${
|
|
289
|
+
border-top-left-radius: ${li.borderRadius};
|
|
290
|
+
border-bottom-left-radius: ${li.borderRadius};
|
|
301
291
|
}
|
|
302
292
|
|
|
303
293
|
.ft-notice-label {
|
|
304
294
|
padding: 8px;
|
|
305
|
-
border-top-right-radius: ${
|
|
306
|
-
border-bottom-right-radius: ${
|
|
307
|
-
border: 1px solid ${
|
|
295
|
+
border-top-right-radius: ${li.borderRadius};
|
|
296
|
+
border-bottom-right-radius: ${li.borderRadius};
|
|
297
|
+
border: 1px solid ${li.noticeColor};
|
|
308
298
|
}
|
|
309
|
-
`;var
|
|
299
|
+
`;var hi,pi,fi=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 ui extends bt{constructor(){super(...arguments),this.icon="info"}render(){return I`
|
|
310
300
|
<div class="ft-notice">
|
|
311
301
|
<div class="ft-icon">
|
|
312
302
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -315,4 +305,4 @@ const Et=Symbol.for(""),Rt=t=>{if((null==t?void 0:t.r)===Et)return null==t?void
|
|
|
315
305
|
<slot></slot>
|
|
316
306
|
</ft-typography>
|
|
317
307
|
</div>
|
|
318
|
-
`}}
|
|
308
|
+
`}}ui.elementDefinitions={"ft-icon":jt,"ft-typography":ai},ui.styles=ci,fi([o({type:String})],ui.prototype,"icon",void 0),s("ft-notice")(ui),t.FtNotice=ui,t.FtNoticeCssVariables=li,t.styles=ci}({});
|
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-alpha.0",
|
|
4
4
|
"description": "Notice to display different messages",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-icon": "0.
|
|
23
|
-
"@fluid-topics/ft-typography": "0.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.
|
|
25
|
-
"lit": "2.2
|
|
22
|
+
"@fluid-topics/ft-icon": "1.0.0-alpha.0",
|
|
23
|
+
"@fluid-topics/ft-typography": "1.0.0-alpha.0",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "1.0.0-alpha.0",
|
|
25
|
+
"lit": "2.7.2"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "e20baae36b79d721b948090d552affaf92c4f12f"
|
|
28
28
|
}
|