@fluid-topics/ft-notice 0.3.56 → 0.3.58
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.light.js +10 -10
- package/build/ft-notice.min.js +113 -113
- package/package.json +5 -5
package/build/ft-notice.light.js
CHANGED
|
@@ -45,18 +45,18 @@
|
|
|
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 h
|
|
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 p,h=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(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:f.fluid_topics,o="material"!==e||this.value;return i.html`
|
|
49
|
+
<i class="ft-icon ${"ft-icon--"+e}">
|
|
50
50
|
${n.unsafeHTML(this.resolvedIcon)}
|
|
51
|
-
<slot ?hidden=${
|
|
51
|
+
<slot ?hidden=${o}></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.
|
|
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,h([o.property()],x.prototype,"variant",void 0),h([o.property()],x.prototype,"value",void 0),h([o.state()],x.prototype,"resolvedIcon",void 0),h([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$${(Math.random()+"").slice(9)}$`,m="?"+d,u=`<${m}>`,v=document,b=(t="")=>v.createComment(t),$=t=>null===t||"object"!=typeof t&&"function"!=typeof t,w=Array.isArray,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,j=/>/g,_=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),A=/'/g,k=/"/g,O=/^(?:script|style|textarea|title)$/i,S=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),U=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),E=new WeakMap,M=v.createTreeWalker(v,129,null,!1),F=(t,e)=>{const i=t.length-1,o=[];let n,s=2===e?"<svg>":"",r=z;for(let e=0;e<i;e++){const i=t[e];let a,l,f=-1,p=0;for(;p<i.length&&(r.lastIndex=p,l=r.exec(i),null!==l);)p=r.lastIndex,r===z?"!--"===l[1]?r=N:void 0!==l[1]?r=j:void 0!==l[2]?(O.test(l[2])&&(n=RegExp("</"+l[2],"g")),r=_):void 0!==l[3]&&(r=_):r===_?">"===l[0]?(r=null!=n?n:z,f=-1):void 0===l[1]?f=-2:(f=r.lastIndex-l[2].length,a=l[1],r=void 0===l[3]?_:'"'===l[3]?k:A):r===k||r===A?r=_:r===N||r===j?r=z:(r=_,n=void 0);const h=r===_&&t[e+1].startsWith("/>")?" ":"";s+=r===z?i+u:f>=0?(o.push(a),i.slice(0,f)+"$lit$"+i.slice(f)+d+h):i+d+(-2===f?(o.push(void 0),e):h)}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 T{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]=F(t,e);if(this.el=T.createElement(l,i),M.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=M.nextNode())&&a.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(d)){const i=f[s++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(d),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?Z:"?"===e[1]?q:"@"===e[1]?H:R})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(O.test(o.tagName)){const t=o.textContent.split(d),e=t.length-1;if(e>0){o.textContent=c?c.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],b()),M.nextNode(),a.push({type:2,index:++n});o.append(t[e],b())}}}else if(8===o.nodeType)if(o.data===m)a.push({type:2,index:n});else{let t=-1;for(;-1!==(t=o.data.indexOf(d,t+1));)a.push({type:7,index:n}),t+=d.length-1}n++}}static createElement(t,e){const i=v.createElement("template");return i.innerHTML=t,i}}function W(t,e,i=t,o){var n,s,r,a;if(e===U)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const f=$(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=W(t,l._$AS(t,e.values),l,o)),e}class C{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:v).importNode(i,!0);M.currentNode=n;let s=M.nextNode(),r=0,a=0,l=o[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new K(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new B(s,this,t)),this.u.push(e),l=o[++a]}r!==(null==l?void 0:l.index)&&(s=M.nextNode(),r++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class K{constructor(t,e,i,o){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=W(this,t,e),$(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==U&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>w(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==I&&$(this._$AH)?this._$AA.nextSibling.data=t:this.T(v.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=T.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new C(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=E.get(t.strings);return void 0===e&&E.set(t.strings,e=new T(t)),e}k(t){w(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 K(this.O(b()),this.O(b()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class R{constructor(t,e,i,o,n){this.type=1,this._$AH=I,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=I}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=W(this,t,e,0),s=!$(t)||t!==this._$AH&&t!==U,s&&(this._$AH=t);else{const o=t;let r,a;for(t=n[0],r=0;r<n.length-1;r++)a=W(this,o[i+r],e,r),a===U&&(a=this._$AH[r]),s||(s=!$(a)||a!==this._$AH[r]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+n[r+1]),this._$AH[r]=a}s&&!o&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Z extends R{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const G=c?c.emptyScript:"";class q extends R{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,G):this.element.removeAttribute(this.name)}}class H extends R{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=W(this,t,e,0))&&void 0!==i?i:I)===U)return;const o=this._$AH,n=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==I&&(o===I||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 B{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){W(this,t)}}const D=y.litHtmlPolyfillSupport;null==D||D(T,K),(null!==(p=y.litHtmlVersions)&&void 0!==p?p:y.litHtmlVersions=[]).push("2.4.0");
|
|
54
54
|
/**
|
|
55
55
|
* @license
|
|
56
56
|
* Copyright 2020 Google LLC
|
|
57
57
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
58
58
|
*/
|
|
59
|
-
const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:L}),Q=new Map,V=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,f=0,
|
|
59
|
+
const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t._$litStatic$},P=t=>({_$litStatic$:t,r:L}),Q=new Map,V=(t=>(e,...i)=>{const o=i.length;let n,s;const r=[],a=[];let l,f=0,p=!1;for(;f<o;){for(l=e[f];f<o&&void 0!==(s=i[f],n=J(s));)l+=n+e[++f],p=!0;a.push(s),r.push(l),f++}if(f===o&&r.push(e[o]),p){const t=r.join("$$lit$$");void 0===(e=Q.get(t))&&(r.raw=r,Q.set(t,e=r)),i=a}return t(e,...i)})(S);var X;!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"}(X||(X={}));const Y=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.titleFont),tt=e.FtCssVariableFactory.extend("--ft-typography-font-family",e.designSystemVariables.contentFont),et={fontFamily:tt,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")},it=e.FtCssVariableFactory.extend("--ft-typography-title-font-family",Y),ot=e.FtCssVariableFactory.extend("--ft-typography-title-font-size",et.fontSize,"20px"),nt=e.FtCssVariableFactory.extend("--ft-typography-title-font-weight",et.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",et.letterSpacing,"0.15px"),rt=e.FtCssVariableFactory.extend("--ft-typography-title-line-height",et.lineHeight,"1.2"),at=e.FtCssVariableFactory.extend("--ft-typography-title-text-transform",et.textTransform,"inherit"),lt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",Y),ft=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",et.fontSize,"14px"),pt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",et.fontWeight,"normal"),ht=e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",et.letterSpacing,"0.105px"),xt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",et.lineHeight,"1.7"),yt=e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",et.textTransform,"inherit"),ct=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",tt),gt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",et.fontSize,"16px"),dt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",et.fontWeight,"600"),mt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",et.letterSpacing,"0.144px"),ut=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",et.lineHeight,"1.5"),vt=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",et.textTransform,"inherit"),bt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",tt),$t=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",et.fontSize,"14px"),wt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",et.fontWeight,"normal"),zt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",et.letterSpacing,"0.098px"),Nt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",et.lineHeight,"1.7"),jt=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",et.textTransform,"inherit"),_t=e.FtCssVariableFactory.extend("--ft-typography-body1-font-family",tt),At=e.FtCssVariableFactory.extend("--ft-typography-body1-font-size",et.fontSize,"16px"),kt=e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",et.fontWeight,"normal"),Ot=e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",et.letterSpacing,"0.496px"),St=e.FtCssVariableFactory.extend("--ft-typography-body1-line-height",et.lineHeight,"1.5"),Ut=e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",et.textTransform,"inherit"),It=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family",tt),Et=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size",et.fontSize,"14px"),Mt=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",et.fontWeight,"normal"),Ft=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",et.letterSpacing,"0.252px"),Tt=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height",et.lineHeight,"1.4"),Wt=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",et.textTransform,"inherit"),Ct=e.FtCssVariableFactory.extend("--ft-typography-caption-font-family",tt),Kt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-size",et.fontSize,"12px"),Rt=e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",et.fontWeight,"normal"),Zt=e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",et.letterSpacing,"0.396px"),Gt=e.FtCssVariableFactory.extend("--ft-typography-caption-line-height",et.lineHeight,"1.33"),qt=e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",et.textTransform,"inherit"),Ht=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",tt),Bt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",et.fontSize,"10px"),Dt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",et.fontWeight,"normal"),Lt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",et.letterSpacing,"0.33px"),Jt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",et.lineHeight,"1.6"),Pt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",et.textTransform,"inherit"),Qt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family",tt),Vt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size",et.fontSize,"10px"),Xt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",et.fontWeight,"normal"),Yt=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",et.letterSpacing,"1.5px"),te=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height",et.lineHeight,"1.6"),ee=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",et.textTransform,"uppercase"),ie=e.FtCssVariableFactory.extend("--ft-typography-button-font-family",tt),oe=e.FtCssVariableFactory.extend("--ft-typography-button-font-size",et.fontSize,"14px"),ne=e.FtCssVariableFactory.extend("--ft-typography-button-font-weight",et.fontWeight,"600"),se=e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",et.letterSpacing,"1.246px"),re=e.FtCssVariableFactory.extend("--ft-typography-button-line-height",et.lineHeight,"1.15"),ae=e.FtCssVariableFactory.extend("--ft-typography-button-text-transform",et.textTransform,"uppercase"),le=i.css`
|
|
60
60
|
.ft-typography--title {
|
|
61
61
|
font-family: ${it};
|
|
62
62
|
font-size: ${ot};
|
|
@@ -69,12 +69,12 @@ const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t
|
|
|
69
69
|
.ft-typography--title-dense {
|
|
70
70
|
font-family: ${lt};
|
|
71
71
|
font-size: ${ft};
|
|
72
|
-
font-weight: ${
|
|
73
|
-
letter-spacing: ${
|
|
72
|
+
font-weight: ${pt};
|
|
73
|
+
letter-spacing: ${ht};
|
|
74
74
|
line-height: ${xt};
|
|
75
75
|
text-transform: ${yt};
|
|
76
76
|
}
|
|
77
|
-
`,
|
|
77
|
+
`,pe=i.css`
|
|
78
78
|
.ft-typography--subtitle1 {
|
|
79
79
|
font-family: ${ct};
|
|
80
80
|
font-size: ${gt};
|
|
@@ -83,7 +83,7 @@ const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t
|
|
|
83
83
|
line-height: ${ut};
|
|
84
84
|
text-transform: ${vt};
|
|
85
85
|
}
|
|
86
|
-
`,
|
|
86
|
+
`,he=i.css`
|
|
87
87
|
.ft-typography--subtitle2 {
|
|
88
88
|
font-family: ${bt};
|
|
89
89
|
font-size: ${$t};
|
|
@@ -158,7 +158,7 @@ const L=Symbol.for(""),J=t=>{if((null==t?void 0:t.r)===L)return null==t?void 0:t
|
|
|
158
158
|
</${P(this.element)}>
|
|
159
159
|
`:V`
|
|
160
160
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
161
|
-
`}}be.styles=[le,fe,he,
|
|
161
|
+
`}}be.styles=[le,fe,pe,he,xe,ye,ce,ge,de,me,ue],ve([o.property()],be.prototype,"element",void 0),ve([o.property()],be.prototype,"variant",void 0),e.customElement("ft-typography")(be);const $e={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")},we=i.css`
|
|
162
162
|
.ft-notice {
|
|
163
163
|
display: inline-flex;
|
|
164
164
|
align-items: stretch;
|
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,
|
|
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){return this._definitionsByTag.get(t)?.elementClass}_getDefinition(t){return this._definitionsByTag.get(t)}whenDefined(t){const e=this._getDefinition(t);if(void 0!==e)return Promise.resolve(e.elementClass);let i=this._whenDefinedPromises.get(t);return void 0===i&&(i={},i.promise=new Promise((t=>i.resolve=t)),this._whenDefinedPromises.set(t,i)),i.promise}_upgradeWhenDefined(t,e,i){let o=this._awaitingUpgrade.get(e);o||this._awaitingUpgrade.set(e,o=new Set),i?o.add(t):o.delete(t)}},window.HTMLElement=function(){let e=l;if(e)return l=void 0,e;const i=s.get(this.constructor);if(!i)throw new TypeError("Illegal constructor (custom element class must be registered with global customElements registry to be newable)");return e=Reflect.construct(t,[],i.standInClass),Object.setPrototypeOf(e,this.constructor.prototype),n.set(e,i),e},window.HTMLElement.prototype=t.prototype;const 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(){n.get(this)?.adoptedCallback?.apply(this,arguments)}formAssociatedCallback(){const t=n.get(this);t&&t.formAssociated&&t?.formAssociatedCallback?.apply(this,arguments)}formDisabledCallback(){const t=n.get(this);t?.formAssociated&&t?.formDisabledCallback?.apply(this,arguments)}formResetCallback(){const t=n.get(this);t?.formAssociated&&t?.formResetCallback?.apply(this,arguments)}formStateRestoreCallback(){const t=n.get(this);t?.formAssociated&&t?.formStateRestoreCallback?.apply(this,arguments)}},f=(t,e,i)=>{if(0===e.size||void 0===i)return;const o=t.prototype.setAttribute;o&&(t.prototype.setAttribute=function(t,n){const r=t.toLowerCase();if(e.has(r)){const t=this.getAttribute(r);o.call(this,r,n),i.call(this,r,t,n)}else o.call(this,r,n)});const n=t.prototype.removeAttribute;n&&(t.prototype.removeAttribute=function(t){const o=t.toLowerCase();if(e.has(o)){const t=this.getAttribute(o);n.call(this,o),i.call(this,o,t,null)}else n.call(this,o)})},u=e=>{const i=Object.getPrototypeOf(e);if(i!==window.HTMLElement)return i===t||"HTMLElement"===i?.prototype?.constructor?.name?Object.setPrototypeOf(e,window.HTMLElement):u(i)},d=(t,e,i=!1)=>{Object.setPrototypeOf(t,e.elementClass.prototype),n.set(t,e),l=t;try{new e.elementClass}catch(t){u(e.elementClass),new e.elementClass}e.observedAttributes.forEach((i=>{t.hasAttribute(i)&&e.attributeChangedCallback.call(t,i,null,t.getAttribute(i))})),i&&e.connectedCallback&&t.isConnected&&e.connectedCallback.call(t)},y=Element.prototype.attachShadow;Element.prototype.attachShadow=function(t){const e=y.apply(this,arguments);return t.customElements&&(e.customElements=t.customElements),e};let x=[document];const g=(t,e,i)=>{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(Et){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
|
|
@@ -30,40 +30,40 @@ if(!ShadowRoot.prototype.createElement){const t=window.HTMLElement,e=window.cust
|
|
|
30
30
|
* Copyright 2021 Google LLC
|
|
31
31
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
32
32
|
*/
|
|
33
|
-
var n;null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;const s=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
33
|
+
var n;function r(t,e){try{return function(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){if(t.constructor!==e.constructor)return!1;var i,o,n;if(Array.isArray(t)){if((i=t.length)!=e.length)return!1;for(o=i;0!=o--;)if(!r(t[o],e[o]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;for(o of t.entries())if(!r(o[1],e.get(o[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(o of t.entries())if(!e.has(o[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();if((i=(n=Object.keys(t)).length)!==Object.keys(e).length)return!1;for(o=i;0!=o--;)if(!Object.prototype.hasOwnProperty.call(e,n[o]))return!1;for(o=i;0!=o--;){var s=n[o];if(!r(t[s],e[s]))return!1}return!0}return t!=t&&e!=e}(t,e)}catch(t){return!1}}null===(n=window.HTMLSlotElement)||void 0===n||n.prototype.assignedElements;const s=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};
|
|
34
34
|
/**
|
|
35
35
|
* @license
|
|
36
36
|
* Copyright 2019 Google LLC
|
|
37
37
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
38
38
|
*/
|
|
39
|
-
const
|
|
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;class p{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
|
|
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:$};class S extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const o=this._$Ep(i,e);void 0!==o&&(this._$Ev.set(o,i),t.push(o))})),t}static createProperty(t,e=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(),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 S
|
|
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.4.1");const C=window,E=C.trustedTypes,R=E?E.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,k="?"+M,U=`<${k}>`,F=document,j=(t="")=>F.createComment(t),z=t=>null===t||"object"!=typeof t&&"function"!=typeof t,A=Array.isArray,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,_=/-->/g,P=/>/g,T=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),W=/'/g,B=/"/g,D=/^(?:script|style|textarea|title)$/i,K=(t=>(e,...i)=>({_$litType$:t,strings:e,values:i}))(1),H=Symbol.for("lit-noChange"),I=Symbol.for("lit-nothing"),Z=new WeakMap,V=F.createTreeWalker(F,129,null,!1),J=(t,e)=>{const i=t.length-1,o=[];let n,r=2===e?"<svg>":"",s=L;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?"!--"===l[1]?s=_:void 0!==l[1]?s=P:void 0!==l[2]?(D.test(l[2])&&(n=RegExp("</"+l[2],"g")),s=T):void 0!==l[3]&&(s=T):s===T?">"===l[0]?(s=null!=n?n:L,c=-1):void 0===l[1]?c=-2:(c=s.lastIndex-l[2].length,a=l[1],s=void 0===l[3]?T:'"'===l[3]?B:W):s===B||s===W?s=T:s===_||s===P?s=L:(s=T,n=void 0);const p=s===T&&t[e+1].startsWith("/>")?" ":"";r+=s===L?i+U:c>=0?(o.push(a),i.slice(0,c)+"$lit$"+i.slice(c)+M+p):i+M+(-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 q{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]=J(t,e);if(this.el=q.createElement(l,i),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(o=V.nextNode())&&a.length<s;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const e of o.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=c[r++];if(t.push(e),void 0!==i){const t=o.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?tt:"?"===e[1]?it:"@"===e[1]?ot:Y})}else a.push({type:6,index:n})}for(const e of t)o.removeAttribute(e)}if(D.test(o.tagName)){const t=o.textContent.split(M),e=t.length-1;if(e>0){o.textContent=E?E.emptyScript:"";for(let i=0;i<e;i++)o.append(t[i],j()),V.nextNode(),a.push({type:2,index:++n});o.append(t[e],j())}}}else if(8===o.nodeType)if(o.data===k)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=F.createElement("template");return i.innerHTML=t,i}}function X(t,e,i=t,o){var n,r,s,a;if(e===H)return e;let l=void 0!==o?null===(n=i._$Co)||void 0===n?void 0:n[o]:i._$Cl;const c=z(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=X(t,l._$AS(t,e.values),l,o)),e}class G{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:o}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:F).importNode(i,!0);V.currentNode=n;let r=V.nextNode(),s=0,a=0,l=o[0];for(;void 0!==l;){if(s===l.index){let e;2===l.type?e=new Q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new nt(r,this,t)),this.u.push(e),l=o[++a]}s!==(null==l?void 0:l.index)&&(r=V.nextNode(),s++)}return n}p(t){let e=0;for(const i of this.u)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,o){var n;this.type=2,this._$AH=I,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cm=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._$Cm}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=X(this,t,e),z(t)?t===I||null==t||""===t?(this._$AH!==I&&this._$AR(),this._$AH=I):t!==this._$AH&&t!==H&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>A(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==I&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(F.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:o}=t,n="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=q.createElement(o.h,this.options)),o);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.p(i);else{const t=new G(n,this),e=t.v(this.options);t.p(i),this.T(e),this._$AH=t}}_$AC(t){let e=Z.get(t.strings);return void 0===e&&Z.set(t.strings,e=new q(t)),e}k(t){A(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 Q(this.O(j()),this.O(j()),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._$Cm=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class Y{constructor(t,e,i,o,n){this.type=1,this._$AH=I,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=I}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=X(this,t,e,0),r=!z(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const o=t;let s,a;for(t=n[0],s=0;s<n.length-1;s++)a=X(this,o[i+s],e,s),a===H&&(a=this._$AH[s]),r||(r=!z(a)||a!==this._$AH[s]),a===I?t=I:t!==I&&(t+=(null!=a?a:"")+n[s+1]),this._$AH[s]=a}r&&!o&&this.j(t)}j(t){t===I?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class tt extends Y{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===I?void 0:t}}const et=E?E.emptyScript:"";class it extends Y{constructor(){super(...arguments),this.type=4}j(t){t&&t!==I?this.element.setAttribute(this.name,et):this.element.removeAttribute(this.name)}}class ot extends Y{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=X(this,t,e,0))&&void 0!==i?i:I)===H)return;const o=this._$AH,n=t===I&&o!==I||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==I&&(o===I||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 nt{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){X(this,t)}}const rt=C.litHtmlPolyfillSupport;null==rt||rt(q,Q),(null!==(N=C.litHtmlVersions)&&void 0!==N?N:C.litHtmlVersions=[]).push("2.4.0");
|
|
51
51
|
/**
|
|
52
52
|
* @license
|
|
53
53
|
* Copyright 2017 Google LLC
|
|
54
54
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
55
55
|
*/
|
|
56
|
-
var st,
|
|
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
57
|
/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2021 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
61
|
-
*/var
|
|
62
|
-
${t.map((t=>
|
|
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
63
|
<style>${t}</style>
|
|
64
64
|
`))}
|
|
65
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,s
|
|
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`
|
|
67
67
|
.ft-no-text-select {
|
|
68
68
|
-webkit-touch-callout: none;
|
|
69
69
|
-webkit-user-select: none;
|
|
@@ -72,7 +72,7 @@ var st,rt;class at extends O{constructor(){super(...arguments),this.renderOption
|
|
|
72
72
|
-ms-user-select: none;
|
|
73
73
|
user-select: none;
|
|
74
74
|
}
|
|
75
|
-
`,
|
|
75
|
+
`,u`
|
|
76
76
|
.ft-word-wrap {
|
|
77
77
|
white-space: normal;
|
|
78
78
|
word-wrap: break-word;
|
|
@@ -84,7 +84,7 @@ var st,rt;class at extends O{constructor(){super(...arguments),this.renderOption
|
|
|
84
84
|
-webkit-hyphens: auto;
|
|
85
85
|
hyphens: auto
|
|
86
86
|
}
|
|
87
|
-
`,
|
|
87
|
+
`,u`
|
|
88
88
|
.ft-safari-ellipsis-fix {
|
|
89
89
|
margin-right: 0;
|
|
90
90
|
|
|
@@ -95,18 +95,18 @@ var st,rt;class at extends O{constructor(){super(...arguments),this.renderOption
|
|
|
95
95
|
display: inline-block;
|
|
96
96
|
width: 0;
|
|
97
97
|
}
|
|
98
|
-
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(
|
|
98
|
+
`,navigator.vendor&&navigator.vendor.match(/apple/i)||(null===(ut=null===(ft=window.safari)||void 0===ft?void 0:ft.pushNotification)||void 0===ut||ut.toString());
|
|
99
99
|
/**
|
|
100
100
|
* @license
|
|
101
101
|
* Copyright 2017 Google LLC
|
|
102
102
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
103
103
|
*/
|
|
104
|
-
const
|
|
104
|
+
const xt=2;class gt{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
105
|
/**
|
|
106
106
|
* @license
|
|
107
107
|
* Copyright 2017 Google LLC
|
|
108
108
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
109
|
-
*/class
|
|
109
|
+
*/class mt extends gt{constructor(t){if(super(t),this.it=I,t.type!==xt)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===I||null==t)return this._t=void 0,this.it=t;if(t===H)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}mt.directiveName="unsafeHTML",mt.resultType=1;const vt=(t=>(...e)=>({_$litDirective$:t,values:e}))(mt);var bt,wt;!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=""}(bt||(bt={})),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=""}(wt||(wt={})),new Map([...["abw"].map((t=>[t,wt.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,wt.AUDIO])),...["avi"].map((t=>[t,wt.AVI])),...["chm","xhs"].map((t=>[t,wt.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,wt.CODE])),...["csv"].map((t=>[t,wt.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,wt.DITA])),...["epub"].map((t=>[t,wt.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,wt.EXCEL])),...["flac"].map((t=>[t,wt.FLAC])),...["gif"].map((t=>[t,wt.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,wt.GZIP])),...["html","htm","xhtml"].map((t=>[t,wt.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,wt.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,wt.JPEG])),...["json"].map((t=>[t,wt.JSON])),...["m4a","m4p"].map((t=>[t,wt.M4A])),...["mov","qt"].map((t=>[t,wt.MOV])),...["mp3"].map((t=>[t,wt.MP3])),...["mp4","m4v"].map((t=>[t,wt.MP4])),...["ogg","oga"].map((t=>[t,wt.OGG])),...["pdf","ps"].map((t=>[t,wt.PDF])),...["png"].map((t=>[t,wt.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,wt.POWERPOINT])),...["rar"].map((t=>[t,wt.RAR])),...["stp"].map((t=>[t,wt.STP])),...["txt","rtf","md","mdown"].map((t=>[t,wt.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,wt.VIDEO])),...["wav"].map((t=>[t,wt.WAV])),...["wma"].map((t=>[t,wt.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,wt.WORD])),...["xml","xsl","rdf"].map((t=>[t,wt.XML])),...["yaml","yml","x-yaml"].map((t=>[t,wt.YAML])),...["zip"].map((t=>[t,wt.ZIP]))]);const $t={size:ht.create("--ft-icon-font-size","SIZE","24px"),fluidTopicsFontFamily:ht.extend("--ft-icon-fluid-topics-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.extend("--ft-icon-file-format-font-family",ht.create("--ft-icon-font-family","UNKNOWN","ft-mime")),materialFontFamily:ht.extend("--ft-icon-material-font-family",ht.create("--ft-icon-font-family","UNKNOWN","Material Icons")),verticalAlign:ht.create("--ft-icon-vertical-align","UNKNOWN","unset")},Ot=u`
|
|
110
110
|
:host, i.ft-icon {
|
|
111
111
|
display: inline-flex;
|
|
112
112
|
align-items: center;
|
|
@@ -115,14 +115,14 @@ const yt=2;class xt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
:host {
|
|
118
|
-
width: ${
|
|
119
|
-
height: ${
|
|
118
|
+
width: ${$t.size};
|
|
119
|
+
height: ${$t.size};
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
i.ft-icon {
|
|
123
123
|
width: 100%;
|
|
124
124
|
height: 100%;
|
|
125
|
-
font-size: ${
|
|
125
|
+
font-size: ${$t.size};
|
|
126
126
|
line-height: 1;
|
|
127
127
|
font-weight: normal;
|
|
128
128
|
text-transform: none;
|
|
@@ -133,151 +133,151 @@ const yt=2;class xt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i)
|
|
|
133
133
|
text-rendering: auto;
|
|
134
134
|
-webkit-font-smoothing: antialiased;
|
|
135
135
|
-moz-osx-font-smoothing: grayscale;
|
|
136
|
-
vertical-align: ${
|
|
136
|
+
vertical-align: ${$t.verticalAlign};
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
i.ft-icon.ft-icon--fluid-topics {
|
|
140
|
-
font-family: ${
|
|
140
|
+
font-family: ${$t.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
|
|
141
141
|
|
|
142
142
|
/* Ugly fix because font is broken */
|
|
143
|
-
font-size: calc(0.9 * ${
|
|
143
|
+
font-size: calc(0.9 * ${$t.size});
|
|
144
144
|
position: relative;
|
|
145
145
|
top: -5%;
|
|
146
146
|
justify-content: center;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
.ft-icon--file-format {
|
|
150
|
-
font-family: ${
|
|
150
|
+
font-family: ${$t.fileFormatFontFamily}, ft-mime, sans-serif;
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.ft-icon--material {
|
|
154
|
-
font-family: ${
|
|
154
|
+
font-family: ${$t.materialFontFamily}, "Material Icons", sans-serif;
|
|
155
155
|
}
|
|
156
|
-
`;var
|
|
157
|
-
<i class="ft-icon ${"ft-icon--"+
|
|
158
|
-
${
|
|
159
|
-
<slot ?hidden=${
|
|
156
|
+
`;var St;!function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(St||(St={}));var Nt=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 Ct extends yt{constructor(){super(...arguments),this.resolvedIcon=I}render(){var t;const e=null!==(t=this.variant)&&void 0!==t?t:St.fluid_topics,i="material"!==e||this.value;return K`
|
|
157
|
+
<i class="ft-icon ${"ft-icon--"+e}">
|
|
158
|
+
${vt(this.resolvedIcon)}
|
|
159
|
+
<slot ?hidden=${i}></slot>
|
|
160
160
|
</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
|
|
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 St.file_format:this.resolvedIcon=null!==(t=wt[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case St.material:this.resolvedIcon=this.value||I;break;default:this.resolvedIcon=null!==(e=bt[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ct.elementDefinitions={},Ct.styles=Ot,Nt([o()],Ct.prototype,"variant",void 0),Nt([o()],Ct.prototype,"value",void 0),Nt([function(t){return o({...t,state:!0})}
|
|
162
162
|
/**
|
|
163
163
|
* @license
|
|
164
164
|
* Copyright 2017 Google LLC
|
|
165
165
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
166
|
-
*/()],
|
|
166
|
+
*/()],Ct.prototype,"resolvedIcon",void 0),Nt([
|
|
167
167
|
/**
|
|
168
168
|
* @license
|
|
169
169
|
* Copyright 2017 Google LLC
|
|
170
170
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
171
171
|
*/
|
|
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,
|
|
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")],Ct.prototype,"slottedContent",void 0),s("ft-icon")(Ct);
|
|
173
173
|
/**
|
|
174
174
|
* @license
|
|
175
175
|
* Copyright 2020 Google LLC
|
|
176
176
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
177
177
|
*/
|
|
178
|
-
const
|
|
178
|
+
const Et=Symbol.for(""),Rt=t=>{if((null==t?void 0:t.r)===Et)return null==t?void 0:t._$litStatic$},Mt=t=>({_$litStatic$:t,r:Et}),kt=new Map,Ut=(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=Rt(r));)l+=n+e[++c],h=!0;a.push(r),s.push(l),c++}if(c===o&&s.push(e[o]),h){const t=s.join("$$lit$$");void 0===(e=kt.get(t))&&(s.raw=s,kt.set(t,e=s)),i=a}return t(e,...i)})(K);var Ft;!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"}(Ft||(Ft={}));const jt=ht.extend("--ft-typography-font-family",pt.titleFont),zt=ht.extend("--ft-typography-font-family",pt.contentFont),At={fontFamily:zt,fontSize:ht.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ht.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ht.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ht.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ht.create("--ft-typography-text-transform","UNKNOWN","inherit")},Lt=ht.extend("--ft-typography-title-font-family",jt),_t=ht.extend("--ft-typography-title-font-size",At.fontSize,"20px"),Pt=ht.extend("--ft-typography-title-font-weight",At.fontWeight,"normal"),Tt=ht.extend("--ft-typography-title-letter-spacing",At.letterSpacing,"0.15px"),Wt=ht.extend("--ft-typography-title-line-height",At.lineHeight,"1.2"),Bt=ht.extend("--ft-typography-title-text-transform",At.textTransform,"inherit"),Dt=ht.extend("--ft-typography-title-dense-font-family",jt),Kt=ht.extend("--ft-typography-title-dense-font-size",At.fontSize,"14px"),Ht=ht.extend("--ft-typography-title-dense-font-weight",At.fontWeight,"normal"),It=ht.extend("--ft-typography-title-dense-letter-spacing",At.letterSpacing,"0.105px"),Zt=ht.extend("--ft-typography-title-dense-line-height",At.lineHeight,"1.7"),Vt=ht.extend("--ft-typography-title-dense-text-transform",At.textTransform,"inherit"),Jt=ht.extend("--ft-typography-subtitle1-font-family",zt),qt=ht.extend("--ft-typography-subtitle1-font-size",At.fontSize,"16px"),Xt=ht.extend("--ft-typography-subtitle1-font-weight",At.fontWeight,"600"),Gt=ht.extend("--ft-typography-subtitle1-letter-spacing",At.letterSpacing,"0.144px"),Qt=ht.extend("--ft-typography-subtitle1-line-height",At.lineHeight,"1.5"),Yt=ht.extend("--ft-typography-subtitle1-text-transform",At.textTransform,"inherit"),te=ht.extend("--ft-typography-subtitle2-font-family",zt),ee=ht.extend("--ft-typography-subtitle2-font-size",At.fontSize,"14px"),ie=ht.extend("--ft-typography-subtitle2-font-weight",At.fontWeight,"normal"),oe=ht.extend("--ft-typography-subtitle2-letter-spacing",At.letterSpacing,"0.098px"),ne=ht.extend("--ft-typography-subtitle2-line-height",At.lineHeight,"1.7"),re=ht.extend("--ft-typography-subtitle2-text-transform",At.textTransform,"inherit"),se=ht.extend("--ft-typography-body1-font-family",zt),ae=ht.extend("--ft-typography-body1-font-size",At.fontSize,"16px"),le=ht.extend("--ft-typography-body1-font-weight",At.fontWeight,"normal"),ce=ht.extend("--ft-typography-body1-letter-spacing",At.letterSpacing,"0.496px"),he=ht.extend("--ft-typography-body1-line-height",At.lineHeight,"1.5"),pe=ht.extend("--ft-typography-body1-text-transform",At.textTransform,"inherit"),fe=ht.extend("--ft-typography-body2-font-family",zt),ue=ht.extend("--ft-typography-body2-font-size",At.fontSize,"14px"),de=ht.extend("--ft-typography-body2-font-weight",At.fontWeight,"normal"),ye=ht.extend("--ft-typography-body2-letter-spacing",At.letterSpacing,"0.252px"),xe=ht.extend("--ft-typography-body2-line-height",At.lineHeight,"1.4"),ge=ht.extend("--ft-typography-body2-text-transform",At.textTransform,"inherit"),me=ht.extend("--ft-typography-caption-font-family",zt),ve=ht.extend("--ft-typography-caption-font-size",At.fontSize,"12px"),be=ht.extend("--ft-typography-caption-font-weight",At.fontWeight,"normal"),we=ht.extend("--ft-typography-caption-letter-spacing",At.letterSpacing,"0.396px"),$e=ht.extend("--ft-typography-caption-line-height",At.lineHeight,"1.33"),Oe=ht.extend("--ft-typography-caption-text-transform",At.textTransform,"inherit"),Se=ht.extend("--ft-typography-breadcrumb-font-family",zt),Ne=ht.extend("--ft-typography-breadcrumb-font-size",At.fontSize,"10px"),Ce=ht.extend("--ft-typography-breadcrumb-font-weight",At.fontWeight,"normal"),Ee=ht.extend("--ft-typography-breadcrumb-letter-spacing",At.letterSpacing,"0.33px"),Re=ht.extend("--ft-typography-breadcrumb-line-height",At.lineHeight,"1.6"),Me=ht.extend("--ft-typography-breadcrumb-text-transform",At.textTransform,"inherit"),ke=ht.extend("--ft-typography-overline-font-family",zt),Ue=ht.extend("--ft-typography-overline-font-size",At.fontSize,"10px"),Fe=ht.extend("--ft-typography-overline-font-weight",At.fontWeight,"normal"),je=ht.extend("--ft-typography-overline-letter-spacing",At.letterSpacing,"1.5px"),ze=ht.extend("--ft-typography-overline-line-height",At.lineHeight,"1.6"),Ae=ht.extend("--ft-typography-overline-text-transform",At.textTransform,"uppercase"),Le=ht.extend("--ft-typography-button-font-family",zt),_e=ht.extend("--ft-typography-button-font-size",At.fontSize,"14px"),Pe=ht.extend("--ft-typography-button-font-weight",At.fontWeight,"600"),Te=ht.extend("--ft-typography-button-letter-spacing",At.letterSpacing,"1.246px"),We=ht.extend("--ft-typography-button-line-height",At.lineHeight,"1.15"),Be=ht.extend("--ft-typography-button-text-transform",At.textTransform,"uppercase"),De=u`
|
|
179
179
|
.ft-typography--title {
|
|
180
|
-
font-family: ${
|
|
181
|
-
font-size: ${
|
|
182
|
-
font-weight: ${
|
|
183
|
-
letter-spacing: ${
|
|
184
|
-
line-height: ${
|
|
185
|
-
text-transform: ${
|
|
180
|
+
font-family: ${Lt};
|
|
181
|
+
font-size: ${_t};
|
|
182
|
+
font-weight: ${Pt};
|
|
183
|
+
letter-spacing: ${Tt};
|
|
184
|
+
line-height: ${Wt};
|
|
185
|
+
text-transform: ${Bt};
|
|
186
186
|
}
|
|
187
|
-
`,
|
|
187
|
+
`,Ke=u`
|
|
188
188
|
.ft-typography--title-dense {
|
|
189
|
-
font-family: ${
|
|
190
|
-
font-size: ${
|
|
191
|
-
font-weight: ${
|
|
192
|
-
letter-spacing: ${
|
|
193
|
-
line-height: ${
|
|
194
|
-
text-transform: ${
|
|
189
|
+
font-family: ${Dt};
|
|
190
|
+
font-size: ${Kt};
|
|
191
|
+
font-weight: ${Ht};
|
|
192
|
+
letter-spacing: ${It};
|
|
193
|
+
line-height: ${Zt};
|
|
194
|
+
text-transform: ${Vt};
|
|
195
195
|
}
|
|
196
|
-
`,
|
|
196
|
+
`,He=u`
|
|
197
197
|
.ft-typography--subtitle1 {
|
|
198
|
-
font-family: ${
|
|
199
|
-
font-size: ${
|
|
200
|
-
font-weight: ${
|
|
201
|
-
letter-spacing: ${
|
|
202
|
-
line-height: ${
|
|
203
|
-
text-transform: ${
|
|
198
|
+
font-family: ${Jt};
|
|
199
|
+
font-size: ${qt};
|
|
200
|
+
font-weight: ${Xt};
|
|
201
|
+
letter-spacing: ${Gt};
|
|
202
|
+
line-height: ${Qt};
|
|
203
|
+
text-transform: ${Yt};
|
|
204
204
|
}
|
|
205
|
-
`,
|
|
205
|
+
`,Ie=u`
|
|
206
206
|
.ft-typography--subtitle2 {
|
|
207
|
-
font-family: ${
|
|
208
|
-
font-size: ${
|
|
209
|
-
font-weight: ${
|
|
210
|
-
letter-spacing: ${
|
|
211
|
-
line-height: ${
|
|
212
|
-
text-transform: ${
|
|
207
|
+
font-family: ${te};
|
|
208
|
+
font-size: ${ee};
|
|
209
|
+
font-weight: ${ie};
|
|
210
|
+
letter-spacing: ${oe};
|
|
211
|
+
line-height: ${ne};
|
|
212
|
+
text-transform: ${re};
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
-
`,
|
|
215
|
+
`,Ze=u`
|
|
216
216
|
.ft-typography--body1 {
|
|
217
217
|
font-family: ${se};
|
|
218
|
-
font-size: ${
|
|
219
|
-
font-weight: ${
|
|
220
|
-
letter-spacing: ${
|
|
221
|
-
line-height: ${
|
|
222
|
-
text-transform: ${
|
|
218
|
+
font-size: ${ae};
|
|
219
|
+
font-weight: ${le};
|
|
220
|
+
letter-spacing: ${ce};
|
|
221
|
+
line-height: ${he};
|
|
222
|
+
text-transform: ${pe};
|
|
223
223
|
}
|
|
224
|
-
`,
|
|
224
|
+
`,Ve=u`
|
|
225
225
|
.ft-typography--body2 {
|
|
226
|
-
font-family: ${
|
|
227
|
-
font-size: ${
|
|
226
|
+
font-family: ${fe};
|
|
227
|
+
font-size: ${ue};
|
|
228
228
|
font-weight: ${de};
|
|
229
|
-
letter-spacing: ${
|
|
230
|
-
line-height: ${
|
|
231
|
-
text-transform: ${
|
|
229
|
+
letter-spacing: ${ye};
|
|
230
|
+
line-height: ${xe};
|
|
231
|
+
text-transform: ${ge};
|
|
232
232
|
}
|
|
233
|
-
`,
|
|
233
|
+
`,Je=u`
|
|
234
234
|
.ft-typography--caption {
|
|
235
|
-
font-family: ${
|
|
236
|
-
font-size: ${
|
|
237
|
-
font-weight: ${
|
|
238
|
-
letter-spacing: ${
|
|
239
|
-
line-height: ${
|
|
240
|
-
text-transform: ${
|
|
235
|
+
font-family: ${me};
|
|
236
|
+
font-size: ${ve};
|
|
237
|
+
font-weight: ${be};
|
|
238
|
+
letter-spacing: ${we};
|
|
239
|
+
line-height: ${$e};
|
|
240
|
+
text-transform: ${Oe};
|
|
241
241
|
}
|
|
242
|
-
`,
|
|
242
|
+
`,qe=u`
|
|
243
243
|
.ft-typography--breadcrumb {
|
|
244
|
-
font-family: ${
|
|
245
|
-
font-size: ${
|
|
246
|
-
font-weight: ${
|
|
247
|
-
letter-spacing: ${
|
|
248
|
-
line-height: ${
|
|
249
|
-
text-transform: ${
|
|
244
|
+
font-family: ${Se};
|
|
245
|
+
font-size: ${Ne};
|
|
246
|
+
font-weight: ${Ce};
|
|
247
|
+
letter-spacing: ${Ee};
|
|
248
|
+
line-height: ${Re};
|
|
249
|
+
text-transform: ${Me};
|
|
250
250
|
}
|
|
251
|
-
`,
|
|
251
|
+
`,Xe=u`
|
|
252
252
|
.ft-typography--overline {
|
|
253
|
-
font-family: ${
|
|
254
|
-
font-size: ${
|
|
255
|
-
font-weight: ${
|
|
256
|
-
letter-spacing: ${
|
|
257
|
-
line-height: ${
|
|
258
|
-
text-transform: ${
|
|
253
|
+
font-family: ${ke};
|
|
254
|
+
font-size: ${Ue};
|
|
255
|
+
font-weight: ${Fe};
|
|
256
|
+
letter-spacing: ${je};
|
|
257
|
+
line-height: ${ze};
|
|
258
|
+
text-transform: ${Ae};
|
|
259
259
|
}
|
|
260
|
-
`,
|
|
260
|
+
`,Ge=u`
|
|
261
261
|
.ft-typography--button {
|
|
262
|
-
font-family: ${
|
|
263
|
-
font-size: ${
|
|
264
|
-
font-weight: ${
|
|
265
|
-
letter-spacing: ${
|
|
266
|
-
line-height: ${
|
|
267
|
-
text-transform: ${
|
|
262
|
+
font-family: ${Le};
|
|
263
|
+
font-size: ${_e};
|
|
264
|
+
font-weight: ${Pe};
|
|
265
|
+
letter-spacing: ${Te};
|
|
266
|
+
line-height: ${We};
|
|
267
|
+
text-transform: ${Be};
|
|
268
268
|
}
|
|
269
|
-
`,
|
|
269
|
+
`,Qe=u`
|
|
270
270
|
.ft-typography {
|
|
271
271
|
vertical-align: inherit;
|
|
272
272
|
}
|
|
273
|
-
`;var
|
|
274
|
-
<${
|
|
273
|
+
`;var Ye=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 ti extends yt{constructor(){super(...arguments),this.variant=Ft.body1}render(){return this.element?Ut`
|
|
274
|
+
<${Mt(this.element)}
|
|
275
275
|
class="ft-typography ft-typography--${this.variant}">
|
|
276
276
|
<slot></slot>
|
|
277
|
-
</${
|
|
278
|
-
`:
|
|
277
|
+
</${Mt(this.element)}>
|
|
278
|
+
`:Ut`
|
|
279
279
|
<slot class="ft-typography ft-typography--${this.variant}"></slot>
|
|
280
|
-
`}}
|
|
280
|
+
`}}ti.styles=[De,Ke,He,Ie,Ze,Ve,Je,qe,Xe,Ge,Qe],Ye([o()],ti.prototype,"element",void 0),Ye([o()],ti.prototype,"variant",void 0),s("ft-typography")(ti);const ei={noticeColor:ht.extend("--ft-notice-color",pt.colorPrimary),noticeIconColor:ht.extend("--ft-notice-icon-color",pt.colorOnPrimary),borderRadius:ht.external(pt.borderRadiusS,"Design System")},ii=u`
|
|
281
281
|
.ft-notice {
|
|
282
282
|
display: inline-flex;
|
|
283
283
|
align-items: stretch;
|
|
@@ -285,28 +285,28 @@ const Ct=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void
|
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
ft-icon {
|
|
288
|
-
${
|
|
288
|
+
${oi=$t.size,ni="20px",f(`${oi.name}: ${ni}`)};
|
|
289
289
|
padding: 0 8px;
|
|
290
290
|
display: flex;
|
|
291
291
|
align-self: center;
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
.ft-icon {
|
|
295
|
-
color: ${
|
|
296
|
-
background-color: ${
|
|
295
|
+
color: ${ei.noticeIconColor};
|
|
296
|
+
background-color: ${ei.noticeColor};
|
|
297
297
|
display: flex;
|
|
298
298
|
align-items: center;
|
|
299
|
-
border-top-left-radius: ${
|
|
300
|
-
border-bottom-left-radius: ${
|
|
299
|
+
border-top-left-radius: ${ei.borderRadius};
|
|
300
|
+
border-bottom-left-radius: ${ei.borderRadius};
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
.ft-notice-label {
|
|
304
304
|
padding: 8px;
|
|
305
|
-
border-top-right-radius: ${
|
|
306
|
-
border-bottom-right-radius: ${
|
|
307
|
-
border: 1px solid ${
|
|
305
|
+
border-top-right-radius: ${ei.borderRadius};
|
|
306
|
+
border-bottom-right-radius: ${ei.borderRadius};
|
|
307
|
+
border: 1px solid ${ei.noticeColor};
|
|
308
308
|
}
|
|
309
|
-
`;var
|
|
309
|
+
`;var oi,ni,ri=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 si extends yt{constructor(){super(...arguments),this.icon="info"}render(){return K`
|
|
310
310
|
<div class="ft-notice">
|
|
311
311
|
<div class="ft-icon">
|
|
312
312
|
<ft-icon>${this.icon}</ft-icon>
|
|
@@ -315,4 +315,4 @@ const Ct=Symbol.for(""),Et=t=>{if((null==t?void 0:t.r)===Ct)return null==t?void
|
|
|
315
315
|
<slot></slot>
|
|
316
316
|
</ft-typography>
|
|
317
317
|
</div>
|
|
318
|
-
`}}si.elementDefinitions={"ft-icon":
|
|
318
|
+
`}}si.elementDefinitions={"ft-icon":Ct,"ft-typography":ti},si.styles=ii,ri([o({type:String})],si.prototype,"icon",void 0),s("ft-notice")(si),t.FtNotice=si,t.FtNoticeCssVariables=ei,t.styles=ii,Object.defineProperty(t,"i",{value:!0})}({});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-notice",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.58",
|
|
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.3.
|
|
23
|
-
"@fluid-topics/ft-typography": "0.3.
|
|
24
|
-
"@fluid-topics/ft-wc-utils": "0.3.
|
|
22
|
+
"@fluid-topics/ft-icon": "0.3.58",
|
|
23
|
+
"@fluid-topics/ft-typography": "0.3.58",
|
|
24
|
+
"@fluid-topics/ft-wc-utils": "0.3.58",
|
|
25
25
|
"lit": "2.2.8"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "c053ee1216238ba6b2c62e5add329343f735c77e"
|
|
28
28
|
}
|